[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 210
  • Last Modified:

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
0
trickyidiot
Asked:
trickyidiot
  • 2
1 Solution
 
caterham_wwwCommented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now