我有HTTPS证书安装在域中,当我输入http://domain.com时,它起作用当我输入https://domain.com时,它不重定向到http。 我的.htaccess有将HTTPS重写为HTTP,但活动证书不起作用
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
我认为你需要改变'off'到'on' – Gerben 2012-01-09 19:40:16