301 redirect

Discussion in 'Site & Server Administration' started by Epson, Mar 7, 2006.

  1. #1
    Hello, I just wanted to check if my 301 redirecets are correct :p
    I have a domain, xanbro.com and I wanted to 301 redirect xanbro.com to xanbro.com/forums/
    So, I placed a .htaccess on the root folder containing:
    redirect permanent /index.html http://www.xanbro.com/forums/
    Code (markup):
    And then, under the /forums/ folder, I placed another 301 redirect so that the "www" is always placed before any address.
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^xanbro\.com$ [NC]
    RewriteRule ^(.*)$ http://www.xanbro.com/forums/$1 [R=301,L]
    Code (markup):
    Are they correct?:)
     
    Epson, Mar 7, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    They look fine to me, assuming that they work and redirect you to the right places then you will be OK.
     
    mad4, Mar 8, 2006 IP
  3. poseidon

    poseidon Banned

    Messages:
    4,356
    Likes Received:
    246
    Best Answers:
    0
    Trophy Points:
    0
    #3
    ya looks correct. There is a very good FAQ been written by nintendo somwwhere in the forum :D do check it. Have lot's of good info on 301.
     
    poseidon, Mar 8, 2006 IP