标签: apache .htaccess http redirect https
如何重定向
https://domain.com
到
http://newdomain.com
使用htaccess?
答案 0 :(得分:1)
在你的.htaccess中试试这个
RewriteEngine on RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$ RewriteCond %{HTTPS} on RewriteRule ^(.*)$ http://www.newdomain.com/$1 [NC,R,L]