apache利用.htaccess实现http重定向到https
发表评论
在.htaccess中添加如下代码 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
阅读全文在.htaccess中添加如下代码 RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
阅读全文