0

我的 robots.txt:

User-agent: *
Disallow: /Templates/
Allow: /

我不希望抓取“模板”文件夹。

以上是正确的吗?

还有什么可能导致我的网站没有排名,即使谷歌网站管理员工具正在为所有事情开绿灯。

先感谢您。

4

1 回答 1

0

你的 robots.txt 很好。您也可以使用以下具有相同含义的内容(因为Allow仅受某些解析器支持,并且默认情况下无论如何都允许使用):

User-agent: *
Disallow: /Templates/

请注意,Disallow: /Templates/例如,会阻止以下 URL:

  • http://example.com/Templates/
  • http://example.com/Templates/foobar
  • http://example.com/Templates/foobar/index.html

但仍允许使用以下 URL:

  • http://example.com/Templates
  • http://example.com/Templates.html
  • http://example.com/templates/
  • http://example.com/templates/foobar.html

还有什么可能导致我的网站没有排名,即使谷歌网站管理员工具正在为所有事情开绿灯。

这个问题在这里是题外话。您应该在Webmasters SE尝试一下。但是你需要在那里提供更多细节。

于 2013-09-17T09:56:52.693 回答