Page is a not externally linkable
- Google
-- Google SEO News and Discussion
---- How long does it take to update 301 redirects site-wide?


jd01 - 7:04 pm on Sep 25, 2007 (gmt 0)


guru5571:

Thanks.
Glad things are working for you.

codeman:

Put 301 redirects on a few key URL's, and allow the rest to go 404.

Means not all URLs were redirected...
Only the main pages were redirected and the rest were removed.
I'm guessing some pages were not redirected because there was not an 'equivalent' page to redirect to.

Make sure that only one redirect occurs with each request.

# If someone requests example.com send them to www.example.com
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

# If someone requests page.html send them to newpage.html
RewriteRule ^page\.html$ http://www.example.com/newpage.html [R=301,L]

In the above example if someone requests http://example.com/page.html there will be two redirects.

When the request is made the 'host' will not be www.example.com, so the first rule will redirect the visitor to www.example.com/page.html, then when page.html is requested the second rule will redirect page.html to newpage.html... There will be two redirects.

One way to help solve the problem is to make sure you redirect in the most efficient order. By changing the order of the rules and redirecting the page request first, you correct the host issue at the same time, so the ruleset below would only result in one redirect with same request from a visitor.

# If someone requests page.html send them to newpage.html
RewriteRule ^page\.html$ http://www.example.com/newpage.html [R=301,L]

# If someone requests example.com send them to www.example.com
RewriteCond %{HTTP_HOST} !^(www\.example\.com)?$
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

This is just a simple example... from there it gets more complicated.

PageOne:
301, always, unless it is only a temporary redirect, then I use a 307 (or 302).

Justin


Thread source:: http://www.webmasterworld.com/google/3452276.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com