【问题标题】:How to redirect https domain to http domain using htaccess?如何使用 htaccess 将 https 域重定向到 http 域?
【发布时间】:2015-07-24 08:35:10
【问题描述】:

如何重定向

https://domain.com

http://newdomain.com 

使用 htaccess?

【问题讨论】:

    标签: apache .htaccess http redirect https


    【解决方案1】:

    在你的 .htaccess 中试试这个

    RewriteEngine on
    
    RewriteCond %{HTTP_HOST} ^(www\.)?domain.com$
    RewriteCond %{HTTPS} on
    RewriteRule ^(.*)$ http://www.newdomain.com/$1 [NC,R,L]
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-04-11
      • 2015-05-19
      • 2020-04-21
      • 2019-03-03
      • 1970-01-01
      • 2015-03-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多