【问题标题】:Robots.txt redirect loop when use Cloudflare flexible ssl使用 Cloudflare 灵活 ssl 时的 Robots.txt 重定向循环
【发布时间】:2015-05-27 03:57:46
【问题描述】:

我的 magento 站点 https://pimaapparel.com/ 正在使用 cloudflare 灵活的 ssl

之后

SetEnvIf X-Forwarded-Proto https HTTPS=on

站点停止重定向循环

之后

RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'

RewriteRule ^(.*)$ https://pimaapparel.com/$1 [L]

链接重定向正确

但现在 robots.txt 仍处于重定向循环中,其他一切正常。请帮忙

【问题讨论】:

  • 任何其他文本文件都可以,只有 robots.txt

标签: .htaccess magento redirect ssl cloudflare


【解决方案1】:

不敢相信这么简单。

只需创建一个页面规则,并禁用 robots.txt 上的任何加速

原来如此……

感谢阅读我的帖子并试图想出解决方案的人。

【讨论】:

  • 我实际上所做的是关闭:“应用程序”并将自定义缓存设置为:“基本缓存”。然后清除缓存。
【解决方案2】:

对我来说,停用和重新启用 WP Fastest Cache 解决了这个问题。

【讨论】:

    猜你喜欢
    • 2016-03-24
    • 2014-10-09
    • 1970-01-01
    • 1970-01-01
    • 2015-01-27
    • 2015-09-17
    • 2016-04-24
    • 2017-09-24
    • 2014-12-02
    相关资源
    最近更新 更多