abrahamgarcia27 Posted November 21, 2013 Share Posted November 21, 2013 I have the following HTACCESS for my blog RewriteRule ^blog/?$ index.php?action=blog [NC,L] RewriteRule ^blog/([A-Za-z0-9-]+)/?$ index.php?action=blog&name=$1 [NC,L] -> This is for a category of a blog I want it to pass a page variable on a url like this for pagination. http://192.168.0.101/rawvana/blog/?page=2 is this possible? Quote Link to comment https://forums.phpfreaks.com/topic/284144-htaccess-php-help/ Share on other sites More sharing options...
Solution Ch0cu3r Posted November 21, 2013 Solution Share Posted November 21, 2013 You need add the QSA flag to your rewriterule(s) RewriteRule ^blog/?$ index.php?action=blog [NC,L,QSA] RewriteRule ^blog/([A-Za-z0-9-]+)/?$ index.php?action=blog&name=$1 [NC,L,QSA] Quote Link to comment https://forums.phpfreaks.com/topic/284144-htaccess-php-help/#findComment-1459436 Share on other sites More sharing options...
abrahamgarcia27 Posted November 21, 2013 Author Share Posted November 21, 2013 thank you Quote Link to comment https://forums.phpfreaks.com/topic/284144-htaccess-php-help/#findComment-1459438 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.