htaccess help

Discussion in 'Site & Server Administration' started by redslazers, Jul 7, 2009.

  1. #1
    I currently have this in my htaccess file

    and it redirect zombieworld. org to www. zombieworld.org but if you type in
    zombieworld.org/forums it dosnt redirect to www.zombieworld.org/forums

    why and how do i fix it?
     
    redslazers, Jul 7, 2009 IP
  2. redslazers

    redslazers Peon

    Messages:
    242
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    thanks thewebhostingdir, iv done that and it dosnt help
     
    redslazers, Jul 7, 2009 IP
  3. chiendent

    chiendent Peon

    Messages:
    116
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    TRy
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www.zombieworld\.org$ [NC]
    RewriteRule ^(.*)  http://www.zombieworld.org/$1 [L,R=301]
    Code (markup):
     
    chiendent, Jul 7, 2009 IP
  4. redslazers

    redslazers Peon

    Messages:
    242
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks chiendent but that dosnt help either
     
    redslazers, Jul 7, 2009 IP
  5. indigochild

    indigochild Peon

    Messages:
    48
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^zombieworld.org$
    RewriteRule ^(.*)$ http://www.zombieworld.org/$1 [L,R]

    It works OK on one of my sites.
     
    indigochild, Jul 7, 2009 IP
  6. redslazers

    redslazers Peon

    Messages:
    242
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #6
    nope that dosnt help either it seems the board is somehow not allowing it
     
    redslazers, Jul 8, 2009 IP
  7. thuankkk

    thuankkk Active Member

    Messages:
    503
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    95
    #7
    Check whether there's .htaccess file under your forums directory, e.g /var/www/forums/.htaccess.
    If there's one, enter your redirect code at top of that file.
     
    thuankkk, Jul 8, 2009 IP