Need some help... mod_rewrite

Discussion in 'Apache' started by teknoledge, Aug 9, 2006.

  1. #1
    teknoledge, Aug 9, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    RewriteEngine On
    Options +FollowSymlinks
    RewriteRule ^(.*)$ script.php?u=$1 [L]

    but it'll do every URL on the domain including index page.
     
    Nintendo, Aug 9, 2006 IP
  3. teknoledge

    teknoledge Active Member

    Messages:
    408
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #3
    I already tried that but it's not working properly. :(
     
    teknoledge, Aug 9, 2006 IP
  4. virtualraceday

    virtualraceday Peon

    Messages:
    137
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Hi teknoledge ;)

    Try this:

    RewriteRule ^([a-zA-Z0-9]+)/?$ script.php?u=$1
     
    virtualraceday, Aug 9, 2006 IP
  5. teknoledge

    teknoledge Active Member

    Messages:
    408
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    88
    #5
    Daichi my man! Works, thanks!
     
    teknoledge, Aug 10, 2006 IP