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]
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报