【问题标题】:Fetch as Google redirected to wrong URL [closed]抓取 Google 重定向到错误的 URL [关闭]
【发布时间】:2014-06-19 16:17:42
【问题描述】:

不确定 Fetch as Google 将如何将此网址 https://www.tonergreen.com.my/HP-CF213A-131A-Magenta-Printer-Toner-Cartridge-Value-Pack-2X 重定向到错误的网址。我使用带有自定义主题的 Opencart,如何解决这个问题?我担心这会影响页面 seo 排名。

【问题讨论】:

  • 这个问题似乎是题外话,因为它是关于 SEO。

标签: redirect seo google-search-console googlebot


【解决方案1】:

我可以确认 Googlebot 看到的行为与我作为访问者的行为相同。

您尝试将网页的http 版本(而不是https)版本作为 Googlebot 提取。当我对 curl 执行相同操作时,您的服务器会将我重定向到 https 站点上的 index.php

curl --head  http://www.tonergreen.com.my/HP-CF213A-131A-Magenta-Printer-Toner-Cartridge-Value-Pack-2X 
HTTP/1.1 302 Found
Location: https://www.tonergreen.com.my/index.php?_route_=HP-CF213A-131A-Magenta-Printer-Toner-Cartridge-Value-Pack-2X

当我获取 https 页面时,我得到标准的 200 OK 响应:

curl --head  https://www.tonergreen.com.my/HP-CF213A-131A-Magenta-Printer-Toner-Cartridge-Value-Pack-2X 
HTTP/1.1 200 OK

您的服务器配置错误,这不是 Google 的错。

【讨论】:

  • 谢谢,现在我应该获取https 版本而不是http
  • 使用“fetch as Google”测试 https 版本应该可以正常工作。您应该修复您的 http 到 https 重定向以重定向到 URL 的规范版本。
【解决方案2】:

Fetch as Googlebot 工具没有出错。

您的问题与您尝试做的不同。例如,您实际上是在尝试查看:

http://www.tonergreen.com.my/HP-CF213A-131A-Magenta-Printer-Toner-Cartridge-Value-Pack-2X

您正在尝试查看 非 https 页面,并被重定向到 https

这不太可能与主题有关。

更有可能是由于与您的电子商务软件相关的某些事情,或者您的某种 http 到 https 重定向。

【讨论】:

  • 但我已经强制浏览器在 htaccess 中使用 https
  • 太好了,这就解释了你被重定向的原因 - 我会看看那里尝试了解出了什么问题。
猜你喜欢
  • 2015-08-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-01
  • 1970-01-01
相关资源
最近更新 更多