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? Link to comment https://forums.phpfreaks.com/topic/284144-htaccess-php-help/ Share on other sites More sharing options...
Ch0cu3r Posted November 21, 2013 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] 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 Link to comment https://forums.phpfreaks.com/topic/284144-htaccess-php-help/#findComment-1459438 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.