【问题标题】:Google Search Console throws error in UI: 'noindex' detected in 'X-Robots-Tag' http headerGoogle Search Console 在 UI 中引发错误:在“X-Robots-Tag”http 标头中检测到“noindex”
【发布时间】:2021-06-28 08:25:26
【问题描述】:

在尝试在 Google Search Console 中抓取我的网站时,我在每个页面上都看到以下错误:

我将X-Robots-Tag 更新为具有以下内容:< X-Robots-Tag: usasearch all; googlebot all; none 并验证了这是与Google's Robots Testing tool 一起使用的,GooglebotGooglebot-Mobile 都是允许的。这里也确认了server header checker tool shows

Final response 
< HTTP/1.1 200 OK
< Server: nginx
< Content-Type: text/html; charset=UTF-8
< Transfer-Encoding: chunked
< Connection: keep-alive
< Keep-Alive: timeout=300
< Vary: Accept-Encoding, 
< Cache-Control: must-revalidate, no-cache, private
< Date: Fri, 27 Sep 2019 21:04:41 GMT
< X-Drupal-Dynamic-Cache: UNCACHEABLE
< Link: ; rel="shortlink", ; rel="canonical"
< X-UA-Compatible: IE=edge
< Content-language: en
< X-Content-Type-Options: nosniff
< X-Frame-Options: SAMEORIGIN, SAMEORIGIN
< Expires: Sun, 19 Nov 1978 05:00:00 GMT
< X-XSS-Protection: 1; mode=block
< Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
< X-Robots-Tag: usasearch all; googlebot all; none

然而,无论我使用多少次URL Inspect tool,我都会得到与上图相同的错误。不知道我还需要做什么。由于最近进行了更改,我应该等待一段时间吗?

有什么建议吗?

【问题讨论】:

    标签: google-search google-search-console x-robots-tag


    【解决方案1】:

    我的网站也遇到过一次问题。那时我在写博客。我记得编辑主题并从中删除 noindex 代码部分。问题已解决。不过,我现在在 Wordpress 上。

    【讨论】:

      【解决方案2】:

      Google 似乎默认使用 X-Robots-Tag 中最严格的标签。在这种情况下none。删除该属性后,搜索控制台能够正确访问并索引该页面。

      【讨论】:

        猜你喜欢
        • 2019-11-13
        • 2022-11-04
        • 2022-09-24
        • 2017-10-05
        • 1970-01-01
        • 1970-01-01
        • 2020-08-06
        • 1970-01-01
        • 2022-01-17
        相关资源
        最近更新 更多