问题原文
原帖链接 · Goutham Jabez GJ · CC BY-SA 3.0
In my robots.txt file (http://www.tutorvista.com/robots.txt), I'm using Noindex: /content/... to disallow indexing:
This should mean that http://www.tutorvista.com/content/ and anything below this URL shouldn't be indexed. But in the image of my search results below, you can see that pages under this URL are being indexed:
Additionally, I'm using Disallow: /biology/ which means that http://www.tutorvista.com/biology/ and anything below this shouldn't be crawled. But in the image of my search results, you can see that pages under this URL are being crawled and indexed.
So can anyone tell me what's wrong with my robots.txt directives?
社区高分解答
原帖链接 · Matthew Elshaw · CC BY-SA 3.0
"noindex" directives should not be used in your robots.txt file, instead a noindex meta tag should be added to any pages that you don't want indexed in Google.
A NOINDEX tag looks like the below and it should be placed in the section of any page you do not want indexed:
<meta name="robots" content="noindex">
More information can be found here.
In the second example while you do have "Disallow: /biology/" in your robots.txt file, a few lines above this you also have "Allow: /biology/animations/" hence why this page in indexed in your example.
Hope this helps!
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
