【发布时间】:2015-10-04 09:49:25
【问题描述】:
在我的 .htaccess 文件中:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
当我访问 mydomain.io 时,Chrome 中出现重定向循环错误。
我在 CloudFlare 上设置了免费的 SSL 证书,我不确定这是否会导致问题?当我访问 https://mydomain.io 时,它运行良好,并提供了绿色锁和 https。
【问题讨论】:
标签: apache .htaccess mod-rewrite ssl https