Jump to content

Change page parameter back to /page= from new /?page=


Frank S. Hagan

Recommended Posts

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?

 

Link to comment
Share on other sites

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? 

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...