【发布时间】:2014-03-21 09:37:45
【问题描述】:
我正在尝试验证我的 robots.txt 文件:
User-agent: *
Disallow: /Admin/
Disallow: /admin/
Disallow: /Account/
Disallow: /account/
Disallow: /robots.txt
使用 the frobee robots.txt checker 表示有 2 个语法错误。
Line 1: Syntax error! Expected <field>: <value> Line 2: Missing User-agent directive! Found Disallow
我真的不明白为什么。
你知道这个简单的 robots.txt 文件有什么问题吗?
【问题讨论】:
-
可以是大写字母吗?根据robotstxt.org/orig.html#format,您的文件看起来不错
-
不,不应该根据网络上的许多文章,例如robotstxt.org/robotstxt.html
-
这个问题似乎是题外话,因为它是关于 SEO
标签: web seo robots.txt