我想将我所有的 http 流量重定向到我网站中的 https。
我的 .htaccess 文件中有以下代码
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI}
</IfModule>
一旦我将此文件放在目录中,我就会收到一条错误消息“此网页具有重定向循环 htaccess”
我看不到导致任何重定向的任何其他文件。
我应该怎么办?