我的网址以&content=Search
. 我想阻止所有以此结尾的 URL。我在 robots.txt 中添加了以下内容。
User-agent: *
Disallow:
Sitemap: http://local.com/sitemap.xml
Sitemap: http://local.com/en/sitemap.xml
Disallow: /*&content=Search$
/en/search?q=terms#currentYear=2015&content=search
但是在https://webmaster.yandex.com/robots.xml中测试时它不起作用。它对我不起作用,因为content=search
它是在#
角色之后。