Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Simple Mod Rewrite question

Discussion in 'General Discussion' started by EdP, Apr 27, 2007.

  1. EdP

    EdP Member

    Dec 19, 2006
    Likes Received:
    Trophy Points:
    Buckinghamshire, UK
    I am trying to capture all of the url after the / for subsequent processing, but don't have much experience of mod rewrite or regexps!

    If I put this in the .htaccess on the folder I am dealing with (/somedir/):

    RewriteRule ^(.*)/?$ index.php?qs=$1

    all I get in $1 is 'index.php', when I need everything after it. E.g. if they enter


    I want to process the 123 with my php script.

    Apologies if I am making a basic error!


Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice