apache mod_rewrite - another regex question regarding hiding two variables

Posted on 2006-04-15
Last Modified: 2010-03-04
I know I'm an idiot but doesn't this rule

RewriteRule ^whatPage/(.*)/whatTag/(.*)/$ /index.php?whatPage=$1&whatTag=$2 [L]

match this url:
Question by:lkrubner
    LVL 27

    Accepted Solution

    The RegEx should match, at least in theory. mod_rewrite should see
    (%2520 --> %20). Are any other rules above that rule?
    LVL 10

    Assisted Solution

    Is this in a per-server (httpd.conf) or a per-directory (.htaccess) context?

    If it is per-server, I think you need the root slash, i.e.:

    RewriteRule   ^/whatPage/(.*)/whatTag/(.*)/$   /index.php?whatPage=$1&whatTag=$2 [L]

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
    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…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    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