Frank S. Hagan Posted February 12, 2017 Posted February 12, 2017 Quite a few of my members bookmarked specific pages of my forums, and the URL is now different. Here's an example from 3.x: http://messing-about.com/forums/topic/9480-core-sound-17-mk-3-summer-breeze/page-24 It is now: http://messing-about.com/forums/topic/9480-core-sound-17-mk-3-summer-breeze/?page-24 Is there a way to revert to the old method so their links will work?
Frank S. Hagan Posted February 13, 2017 Author Posted February 13, 2017 Well, so far I have this in my .htaccess file in the forum root: RewriteRule ^/(.*)/page-(.*)$ /$1?page==2 This rewrites the url: http://messing-about.com/forums/topic/9480-core-sound-17-mk-3-summer-breeze/page-9 to the new version: http://messing-about.com/forums/topic/9480-core-sound-17-mk-3-summer-breeze/?page=9 However, for any double digit page numbers it does not work. /page-15 will rewrite to /?page=1 (all page numbers from 10 to 19 drop the second number) /page-26 will rewrite to /?page=2 (all page numbers from 20 to 29 drop the second number too). Any help on this one?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.