gpt4 book ai didi

drupal-7 - 不允许 :/sites/default/files/not working for my Drupal Website

转载 作者:塔克拉玛干 更新时间:2023-11-03 02:36:18 24 4
gpt4 key购买 nike

我目前正在开发 Drupal 7 网站。我将以下内容添加到我的 robots.txt 文件中(在 # Directories 部分下)

Disallow: /sites/default/files/

但是当我在 Google 中输入“site:www.example.com filetype:pdf”时,它仍然能够爬进我的 /sites/default/files 文件夹。谁能帮我弄清楚为什么这些内容仍在被抓取?

我在这里得到的唯一相关链接是:Can I add sites/default/files in robots.txt?这没有回答我的问题。

最佳答案

请记住,Google 的缓存有效期约为 2 周,因此您的设置将在该时间段后生效。

关于drupal-7 - 不允许 :/sites/default/files/not working for my Drupal Website,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26410222/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com