如何重定向
https://domain.com
到
http://newdomain.com
使用 htaccess?
最佳答案
在你的 .htaccess 中试试这个
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$
RewriteCond %{HTTPS} on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [NC,R,L]
关于apache - 如何使用 htaccess 将 https 域重定向到 http 域?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31605797/