Forum Moderators: phranque
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
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