问题原文
原帖链接 · Fennec · CC BY-SA 4.0
I am trying to change my domain on Google Search console using Change of Address tool, and for some reasons Google is throwing an error saying:
The old site redirects to edbinx.com, which does not correspond to the new site you chose.
Just to confirm that my 301 is working, I tried making cURL calls and got the expected 301 redirects, I don't know where I am going wrong with this on Google Console.
I found this question very similar to the issue I am facing, Change of Address (Google Webmasters Tools) Error, but unfortunately I cannot implement the answer provided.
Thank you for your help.
已采纳解答
原帖链接 · Stephen Ostermiller · CC BY-SA 4.0
Your problem is that you are not redirecting HTTP (as opposed to HTTPS) and www. properly. This redirect is correct:
$ curl https://edbinx.com --head
HTTP/2 301
location: https://error.how/
However, these three redirects are not correct. They should all point directly at your new site, not redirect to the canonical form of your old site:
$ curl http://www.edbinx.com/ --head
HTTP/1.1 301 Moved Permanently
Location: https://www.edbinx.com/
$ curl http://edbinx.com/ --head
HTTP/1.1 301 Moved Permanently
Location: https://edbinx.com/
$ curl https://www.edbinx.com/ --head
HTTP/2 301
location: https://edbinx.com/
If you change those three redirects to point directly to https://error.how/ then Google will be able to process your change of address correctly.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
