mod_rewrite从httpsredirect到http
当我通过https访问我的网站时,Firefox要求允许我的networking主机的证书,然后我被redirect到我的网页主机的索引页面。 我没有要求我的networking主机提供我的https所以我想任何请求httpsredirect到http 。 我已经尝试了这些不同的方法,但Firefox仍然要求证书批准,然后redirect到我的虚拟主机的索引页面。 我的虚拟主机启用了Mod_rewrite(apache 2.2),但是这些行不起作用: 我怎样才能redirect到我的网站,而不是我的networking主机? (端口80和443打开。) RewriteCond %{HTTPS} on RewriteRule ^(.*)$ https://www.mydomain.org/$1 [R=301,L] RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://www.mydomain.org/$1 [R=301,L] RewriteCond %{SERVER_PORT} 443 RewriteRule ^(.*)$ https://www.mydomain.org/$1 [R=301,L]