问题原文
原帖链接 · Sathiya Kumar V M · CC BY-SA 3.0
In my blog’s Webmaster Tools, there is a notification in Crawl Errors section, that is Google couldn't crawl your site because we were unable to access the robots.txt file.
My blog’s robots.txt file is:
User-agent: Mediapartners-Google
Disallow:
User-agent: *
Disallow: /search
Allow: /
Sitemap: http://example.blogspot.com/feeds/posts/default?orderby=UPDATED
I don’t think the above file details are wrong but I don’t understand why I received such dangerous notification.
- How can I fix this issue?
已采纳解答
原帖链接 · user29671 · CC BY-SA 3.0
If you have a message saying that "Google couldn't crawl your site because we were unable to access the robots.txt file". Then it is not the contents of the robots.txt file that is in question, it is that Google simply couldn't access the file. And when Google can't access a robots.txt file then it won't crawl the site.
Using fetch as Googlebot in Webmaster Tools is a good idea. If your robots.txt file fetches successfully then it could be a past issue. If not, then you obviously need to look further to ensure Googlebot access.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
