mod_rewrite not grabbing URL query string

Posted on 2008-11-13
Last Modified: 2012-05-05
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:
only the following is sent through:

I need the full path, script name and query string sent through - how can I accomplish this?

Question by:trickyidiot
    LVL 27

    Accepted Solution

    Check your variable id, it is still there.

    You should find two variables:
    action=OldLinkConversion&queryString=whatever/pricies.html  and
    LVL 27

    Expert Comment

    I meant three variables
    queryString=whatever/pricies.html  and

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (…
    If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now