Mod Rewrite Help

Discussion in 'Apache' started by Atomm, Oct 7, 2006.

  1. #1
    I need help turning this

    http://bob.url.com/bob/index.php?id=abc

    into this

    http://bob.url.com/bob/abc/

    I tried this and it's not working at all.

    RewriteEngine On
    RewriteRule ^([^/\.]+)/([^/\.]+)/?$ $1/index.php?id=$2 [L]
    
    Code (markup):
    Thanks!
     
    Atomm, Oct 7, 2006 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    bob.domain.com/.htaccess

    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine on
    RewriteBase /
    RewriteRule ^bob/([^.]+)/$ bob/index.php?id=$1 [L]
     
    Nintendo, Oct 7, 2006 IP