apache http 跳到https

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]

posted @ 2018-02-05 23:10  一只宅男的自我修养  阅读(168)  评论(0编辑  收藏  举报