Technocracy Posted April 4, 2009 Share Posted April 4, 2009 I'm making the pagination for blog entries but I'm not sure how to get it the way I want. The rule is: RewriteRule ^blog/page-([0-9]+)/?$ /blog.php?page=$1 [L] I want it to look like http://www.example.com/blog/page-1/ but it doesn't like it, presumably because of the - in the rule. I can only get it to work if it's http://www.example.com/blog/page/1/ Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/152557-solved-mod_rewrite-and-pagination/ Share on other sites More sharing options...
Technocracy Posted April 4, 2009 Author Share Posted April 4, 2009 Okay, ignore this. I found out a previous rule was stopping it from working. I changed the position of the rules in .htaccess and it's working fine =] Link to comment https://forums.phpfreaks.com/topic/152557-solved-mod_rewrite-and-pagination/#findComment-801243 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.