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
LVL 6
trickyidiotAsked:
Who is Participating?
 
caterham_wwwConnect With a Mentor Commented:
Check your variable id, it is still there.

You should find two variables:
action=OldLinkConversion&queryString=whatever/pricies.html  and
id=-32156468
0
 
caterham_wwwCommented:
I meant three variables
action=OldLinkConversion
queryString=whatever/pricies.html  and
id=-32156468
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.