【问题标题】:how stop indexing links with included subfolders如何停止索引包含子文件夹的链接
【发布时间】:2018-02-14 12:07:00
【问题描述】:

我网站上的真实链接应在 google 中作为(示例)索引:

www.mywebsite.com/title,id,sometext,sometext

意外地谷歌搜索索引我的网站与子文件夹不应该发生例如:

www.mywebsite.com/include/title,id,sometext,sometext www.mywebsite.com/img/min/title,id,sometext,sometext 等等

如何阻止这些操作被索引。我必须在 htaccess 或 robots.txt 上更改什么?帮帮我,谢谢

【问题讨论】:

    标签: .htaccess search indexing robots.txt


    【解决方案1】:

    您需要更新您的 robots.txt 以防止机器人浏览这些页面,并且您应该在这些页面上设置 noindex 以将它们从排名中移除。如果可以从多个 URL 提供同一页面,您可能还想探索规范链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-01-08
      • 2011-02-27
      • 2020-06-23
      • 1970-01-01
      • 2021-03-04
      • 2015-09-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多