Apache 强制SSL访问

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
posted @ 2019-06-26 11:57  姜文文  阅读(493)  评论(0编辑  收藏  举报