Forward URL instead of redirect?

Discussion in 'Apache' started by kettlewell, Apr 18, 2009.

  1. #1
    I'm trying to get all URL's to forward to my CGI

    so www.domain.com/someurl will forward to
    www.domain.com/cgi-bin/somescript

    the cgi-script needs to have "someurl" passed to it ...

    I've tried a 301 redirect, and the redirect works, except that the URL doesn't contain the original file request.

    Is this possible?

    Thanks -

    Matt
     
    kettlewell, Apr 18, 2009 IP
  2. Lpe04

    Lpe04 Peon

    Messages:
    579
    Likes Received:
    15
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you use the $1 variable, this should pass anything that is in brackets ()

    Hope this helps.
     
    Lpe04, Apr 23, 2009 IP