问题描述
我可以通过浏览器正确浏览网站 https://builtsearch.com.au,但是当我使用 cUrl 命令并使用 googlebot 作为代理时,我得到了这个。
curl -A 'Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)' -i https://builtsearch.com.au/
HTTP/1.1 301 Moved Permanently
Date: Wed,03 Mar 2021 02:24:42 GMT
Server: Apache
X-Powered-By: PHP/7.3.18
X-Frame-Options: SAMEORIGIN
Location: http://www.micaze.com/kategori/izmir-escort/
Content-Length: 0
Content-Type: text/html; charset=UTF-8**
这个错误的 301 重定向阻止了 googlebot 将网站编入索引。
该网站正在使用 Wordpress。
有什么想法吗?
解决方法
谢谢托尼麦克雷思。原来我的 index.php 被一些恶意插件更新了。清理 index.php 似乎可以解决问题。