View Single Post
Join Date: May 2008
Posts: 225
Reputation: samarudge is an unknown quantity at this point 
Solved Threads: 18
samarudge samarudge is offline Offline
Posting Whiz in Training

URL Rewriting pass query string

 
0
  #1
Jul 24th, 2008
Hi,
I have set up a URL rewriting rule for my website:
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)\.html$ /main.php?Area=$1&Page=$2
Which works fine if I request a page like
http://mysite.com/folder/something.html
it would show
http://mysite.com/main.php?Area=folder&Page=something
but I want to also be able to pass the rest of the query string so something like
http://mysite.com/folder/something.html?Bob=Jim
would pass the query string onto the main.php page like
http://mysite.com/main.php?Area=fold...ething&Bob=Jim
Is there a way to do this.
Regards,
Sam Rudge
My Blog, Life and everything that matters to me - SamRudge.co.uk
Reply With Quote