Link to home
Start Free TrialLog in
Avatar of trickyidiot
trickyidiot

asked on

mod_rewrite not grabbing URL query string

RewriteEngine On
RewriteCond   %{REQUEST_FILENAME} !-f
RewriteCond   %{REQUEST_FILENAME} !-d
RewriteRule   ^(.*)$ /index.php?action=OldLinkConversion&queryString=$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
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I meant three variables
action=OldLinkConversion
queryString=whatever/pricies.html  and
id=-32156468