Need help with 301 redirect

Discussion in 'HTML & Website Design' started by Corsario, May 16, 2007.

  1. #1
    I have redirected some urls but didnt pass the PR yet:

    Is ok at htacces this ? RewriteRule ^oldurl\.html$ newurl.html [L,R=301]


    thx :confused:
     
    Corsario, May 16, 2007 IP
  2. Davidj

    Davidj Peon

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Please note that the PR will take time to 'pass on'. It'll take until the next google spider at least.
     
    Davidj, May 16, 2007 IP
  3. Bram Wenting

    Bram Wenting Active Member

    Messages:
    392
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    68
    #3
    Redirect to www:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^voorbeeld.com [NC]
    RewriteRule ^(.*)$ http://www.voorbeeld.com/$1 [L,R=301]

    Redirect to none-www:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www.voorbeeld.com [NC]
    RewriteRule ^(.*)$ http://voorbeeld.com/$1 [L,R=301]
     
    Bram Wenting, May 16, 2007 IP