Apache服务器http自动跳转至https

in 备忘 with 0 comment

WX20170906-152818@2x.png
修改.htaccess文件

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
Comments are closed.