The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple Mod Rewrite question

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

  1. EdP

    EdP Member

    Joined:
    Dec 19, 2006
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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

    /somedir/123

    I want to process the 123 with my php script.

    Apologies if I am making a basic error!

    Ed
     
Loading...

Share This Page