mod_rewrite how do i do that

Discussion in 'Site & Server Administration' started by q8uwait, Nov 17, 2007.

  1. #1
    q8uwait, Nov 17, 2007 IP
  2. V3RT1G0

    V3RT1G0 Peon

    Messages:
    201
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you dont really need to use apache mod rewrite for redirects, you can do it in most control panels (which does use mod_rewrite but its easier) or you can do html metatags, and just place an index.html,php or whatever in that directory. just google html meta tags or meta refresh
     
    V3RT1G0, Nov 17, 2007 IP
  3. trinsic

    trinsic Peon

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Try this:
    Redirect 301 /uploads1 http://up.domain.com/uploads1
    PHP:
    or this:
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteCond %{HTTP_HOST}  ^(www\.)?up\.domain\.com/uploads1$ [NC]
    RewriteRule ^(.*)$ /uploads1/$1 [QSA,L]
    PHP:
     
    trinsic, Nov 17, 2007 IP