Forum Moderators: phranque

Message Too Old, No Replies

301 question

         

DonDisco

3:40 pm on Mar 12, 2008 (gmt 0)

10+ Year Member



Hello!

I have a simple question, if this 301 redirect is ok to forward the links and pagerank from sub.olddomain.com to sub.newdomain.com. The sub.olddomain.com is pointing to a folder where only this htaccess file is stored:

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www\.sub\.newdomain\.com$
RewriteRule ^(.*)$ [sub.newdomain.com...] [L,R=301]

For the user this redirect works without problems - if you type in sub.olddomain.com you get redirected to sub.newdomain.com - but with all the parameters - i'm not sure if it really does what i want it to do (forward pagerank and links).

any comments?

Thx

Disco

jdMorgan

11:53 pm on Mar 12, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The code is correct to provide a 301-Redirect response to the client.

The effect of this if that client is a search engine is to update its URL database to use the newer URL, and to pass some or all of the old URL's PageRank/Link popularity to the new. However, this sometimes can take quite a long time, and only the search engines can answer the specifics.

Jim