duanqinqiao4844 2017-02-25 21:54
浏览 30
已采纳

如何将域重定向到安全SSL?

I have a domain and want it to redirect to secure ssl with https. how can I do it? because sometimes it goes to http domain, not https domain.

  • 写回答

1条回答 默认 最新

  • duanji5116 2017-02-25 21:54
    关注

    For Apache you can use this code lines in .htaccess file;

    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?