When moving a domain name to a new domain where the only change to the URL is the domain name , I use the following redirect in my Apache.htaccess file.
RewriteEngine On RewriteCond %{HTTP_HOST} ^domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule ^(.*)$ http://newdomain.com$1 [R=301,L]
This ensures that all links on the old site are redirected, and search engines such as Google, Bing, etc., Know that the domain has been constantly moved. This gives the advantage that any rating from domain.com is transferred to newdomain.com. Do not include / after the domain in the rewrite rule, otherwise it will double.
This is an alternative to the method shown above.
Clinton
source share