【发布时间】:2019-07-05 18:42:54
【问题描述】:
每当我输入以下 http - https 自动重定向代码时,我都会收到此错误“页面未正确重定向”
连接到“网站 URL”时出错。 此问题有时可能是由禁用或拒绝接受 cookie 引起的。”
htaccess 代码如下。
# Rewrite engine code https redirect
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Rewrite engine code for www to non ww version of website
RewriteCond %{HTTP_HOST} ^www\.(.+) [NC]
RewriteRule ^(.*) http://%1/$1 [R=301,NE,L]
【问题讨论】: