Jump to content

More problems with query string url rewriting


jimmyoneshot

Recommended Posts

I've been struggling with this one for a while but can't fgure out why it won't work.

 

I'm trying to rewrite:-

 

http://www.mydomain.com/mysite/mypage.co.uk/Search/?Search-Term=blah/Page2

 

to (for example) something like:-

 

http://www.mydomain.com/mysite/mypage.co.uk/index.php?Search-Term=blah&page=2

 

to allow pagination of search results

 

The rule I have in place now is:-

 

RewriteRule ^Search/([^/]*)/Page([0-9]*)$ index.php?Search-Term=$1&page=$2 [L]

 

However this doesn't seem to work at all as it seems that it just incorporates the /Page2 part as part of the search term variable

 

Can anyone help me out please?

  • 2 weeks later...

Archived

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

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.