2012-02-26 46 views
1

我一直试图在各种Google论坛上就这个问题得到答案,但没有人回答,所以我会在这里尝试。robots.txt拒绝访问特定的网址参数

我有一样使用
domain.com/index.php?showimage=166
domain.com/index.php?x=googlemap&showimage=139

不同的URL参数我如何阻止访问这些网页,这些参数的旧网站?当然,没有我的domain.com/index.php页面被阻止?

这可以在robots.txt中进行

编辑我发现这里一个帖子:Ignore urls in robot.txt with specific parameters?

回答

0
Allow: * 
Disallow: /index.php?showImage=* 
Disallow: /index.php?x=*