【问题标题】:robots.txt deny access to specific URL parametersrobots.txt 拒绝访问特定的 URL 参数
【发布时间】:2012-02-26 07:28:08
【问题描述】:

我一直试图在各种谷歌论坛上得到这个问题的答案,但没有一个答案,所以我会在这里尝试。

我有一个使用不同 URL 参数的旧网站,例如
domain.com/index.php?showimage=166
domain.com/index.php?x=googlemap&showimage=139

如何阻止对这些参数的这些页面的访问?当然不会阻止我的domain.com/index.php 页面?

这可以在 robots.txt 中完成

编辑 我在这里找到了一个帖子:Ignore urls in robot.txt with specific parameters?

【问题讨论】:

    标签: robots.txt url-parameters


    【解决方案1】:
    Allow: *
    Disallow: /index.php?showImage=*
    Disallow: /index.php?x=*
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-05-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-03-27
      • 2013-10-27
      • 2014-02-07
      相关资源
      最近更新 更多