Old domain to new domain – different accounts
We can use the following code, and paste them in .htacess file: Options +FollowSymlinks RewriteEngine On RewriteCond %{HTTP_HOST} ^old-domain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.old-domain.com$ RewriteRule (.*)$ http://www.new-domain.com/$1 [R=301,L]