我一直试图在各种谷歌论坛上得到这个问题的答案,但没有一个答案,所以我会在这里尝试。
我有一个使用不同 URL 参数的旧网站,例如
domain.com/index.php?showimage=166
domain.com/index.php?x=googlemap&showimage=139
我怎样才能阻止对这些参数的这些页面的访问?当然没有我的domain.com/index.php
页面被阻止?
这可以在 robots.txt 中完成吗
编辑 我在这里找到了一篇文章:Ignore urls in robots.txt with specific parameters?