【问题标题】:robots.txt remove entire subdomain/directoryrobots.txt 删除整个子域/目录
【发布时间】:2012-08-25 02:14:13
【问题描述】:

我有一个子域 forums.example.com

在 public_html/forums

如果我将以下 robots.txt 放在 public_html/forums 中,它会从索引中删除所有论坛吗? (我将论坛迁移到不同的提供商,并希望从谷歌的索引中删除所有论坛页面)

User-agent: *
Disallow: /

【问题讨论】:

    标签: robots.txt


    【解决方案1】:
    User-agent: *
    Disallow: /forums/
    

    如果您不将文件夹名称设置为“论坛”,您将在该虚拟主机中的所有内容从 google/spider robots 中完全删除。

    【讨论】:

      猜你喜欢
      • 2022-06-15
      • 2015-04-14
      • 2011-06-17
      • 2011-09-10
      • 1970-01-01
      • 2012-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多