So I'm moving my website from one domain to another. In this process I'm using the "change address" function in Google Webmaster Tools on my old-domain.com
, "switching" it to / choosing my verified new-domain.com
.
In Step 2 of this process, Google Webmaster Tools will check whether 301 redirect is setup properly on old-domain.com
... And it fails...
Translated to English it says: "Could not find any 301-redirect directives".
I've setup the 301
redirect on my old-domain.com
in the .htaccess - and no other content is in the file than this:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^old-domain.com$ [NC]
RewriteRule ^(.*)$ http://new-domain.dom/$1 [R=301,L]
Am I missing something?
Note that the redirecting works perfectly
old-domain.com
a completely separate hosting account? Are you using awww
subdomain?FollowSymLinks
must also be enabled for mod_rewrite to function, if it's not already. – MrWhite Mar 6 '15 at 10:58www.old-domain.com
(ie. with the subdomain)? – MrWhite Mar 6 '15 at 11:33