大网数据广告活动
网站运营与故障问答

Google Webmaster tool complains about blocked URL, but it isn't

· 52CE 我爱测

We have recently integrated with google webmaster tools. Now, on one of the pages, google complains: Indexed, though blocked by robots.txt Our robots.txt looks like this: User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-…

问题原文

原帖链接 · Alex A. · CC BY-SA 4.0

We have recently integrated with google webmaster tools.

Now, on one of the pages, google complains: Indexed, though blocked by robots.txt

Our robots.txt looks like this:

User-agent: *
Disallow: /wp-admin/
Allow: /wp-admin/admin-ajax.php


Sitemap: http://<domain>/sitemap.xml.gz

So, if I understand how it works, all the rest of the URL (except /wp-admin/) should not be blocked.

Why am I getting this warning?

已采纳解答

原帖链接 · Stephen Ostermiller · CC BY-SA 4.0

The reason is that you recently updated your robots.txt file. It may take several months for Google to crawl all your pages again and realize that they are no longer blocked by robots.txt.

Even though you had never signed up for Google Search Console with your old site, Google was still collecting data about it. Now that you have signed up for GSC, Google is showing you everything that you would have seen had you signed up previously. Your new site data will be mixed in with your old site data.

You may see other remnants of your old site as well:

  • Links in the external links report that were created for your old site
  • Crawl errors from URLs that used to be on your old site
  • Search analytics data from before you signed up for Google Search Console

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Webmasters Stack Exchange
适用范围
以原帖系统、软件版本与发布日期为准(2019-02-18)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。