mod_rewrite help

Discussion in 'Programming' started by daboss, Nov 20, 2006.

  1. chopsticks

    chopsticks Active Member

    Messages:
    565
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Something like this may work, not exactly sure, although I do know the first rule will work.

    http://www.doriat.com/ has alot of information on this, and help with it.

    
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteCond %{SCRIPT_FILENAME} -f [OR]
    RewriteCond %{SCRIPT_FILENAME} -d
    RewriteRule .* - [L]
    
    RewriteRule ^([^/]+)/?$          		/index.php?x=$1  [QSA,L]
    RewriteRule ^([^/]+)/([0-9]+)/([0-9]+)/?$ 	/$1/$2/index.php?x=$3 [QSA,L]
    Code (markup):
     
    chopsticks, Nov 20, 2006 IP
    daboss likes this.
  2. daboss

    daboss Guest

    Messages:
    2,249
    Likes Received:
    151
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks man - some green on the way!
     
    daboss, Nov 20, 2006 IP