trickyidiot
asked on
mod_rewrite not grabbing URL query string
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?action=OldLinkC onversion& queryStrin g=$1 [QSA,L]
Although this returns the proper path and script name referenced in the URL, it does not carry over the querystring
so if the following is requested:
http://example.com/whatever/prices.html?id=-32156468
only the following is sent through:
whatever/prices.html
I need the full path, script name and query string sent through - how can I accomplish this?
Thanks
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?action=OldLinkC
Although this returns the proper path and script name referenced in the URL, it does not carry over the querystring
so if the following is requested:
http://example.com/whatever/prices.html?id=-32156468
only the following is sent through:
whatever/prices.html
I need the full path, script name and query string sent through - how can I accomplish this?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
action=OldLinkConversion
queryString=whatever/prici
id=-32156468