Thread
:
URL Rewriting pass query string
View Single Post
•
•
Join Date: May 2008
Posts: 225
Reputation:
Solved Threads: 18
samarudge
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:
Help with Code Tags
(
Toggle Plain Text
)
RewriteRule ^([A-Za-z]+)/([A-Za-z]+)\.html$ /main.php?Area=$1&Page=$2
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
samarudge
View Public Profile
Visit samarudge's homepage!
Find all posts by samarudge