"Allow: /$" 在 robots.txt 中是什么意思

What does "Allow: /$" mean in robots.txt

在挖掘 Google robots.txt 文件时,我注意到有一行我不熟悉。

以下代码在 robots.txt 文件的上下文中意味着什么?

Allow: /$

'$'是否改变了简单说的意思

Allow: /

一些机器人理解模式匹配。 $ 在正则表达式中用于标记行尾。所以这个规则应该允许 / 而不是 /foo.

不过,我没有 robots.txt 的具体来源。

根据SearchEngineLand..

You can match the end of the string using the dollar sign ($). For example, to block URLs that end with .asp:

User-agent: Googlebot
Disallow: /*.asp$

看起来有点像正则表达式。