htaccess Rewrite Question

Discussion in 'Programming' started by Shoe ButtBack, Mar 23, 2010.

  1. #1
    Shoe ButtBack, Mar 23, 2010 IP
  2. Nyu

    Nyu Peon

    Messages:
    79
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    For the third url you won't need a rewrite rule. For the first two the rewrite rule would look like this:

    
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^ALL$
    RewriteRule ^index.php$ /? [L,R]
    RewriteCond %{QUERY_STRING} ^favgamez\.com$
    RewriteRule ^(.*)$ /? [L,R]
    
    Code (markup):
    It works but i don't know if thats the right way to do it as i'm pretty new to rewrite rules ;)
     
    Nyu, Mar 23, 2010 IP