0

我有一个使用漂亮 url 的网站,需要使用 robots.txt 阻止某些参数的搜索。

我的网址结构如下: http ://example.com/vcond/Used/make/mymake/features/myfeatures

仅当 features 是 url 的参数时,我如何使用 robots.txt 阻止 url。我读过你可以做这样的事情:

Disallow: *features

这将阻止机器人访问任何具有功能的 url。这是真的?但我需要这样的网址:http ://example.com/vcond/Used/make/mymake 才能工作!!

感谢

4

1 回答 1

2
Disallow: /*/features

应该做的伎俩。请参阅https://developers.google.com/webmasters/control-crawl-index/docs/robots_txt

另外,请参阅此线程:Robots.txt:此通配符规则有效吗?

于 2013-11-11T15:33:02.983 回答