1
alect 2016-03-14 21:13:43 +08:00 1
#跳转所有非 https 请求到 https
RewriteCond %{HTTPS} off RewriteRule (.*) https://www.example.com %{REQUEST_URI} [L,R=301,NC] #跳转裸域 ssl 到 www ssl RewriteCond %{HTTP_HOST} ^example.com [NC] RewriteRule (.*) https://www.example.com .com%{REQUEST_URI} [L,R=301,NC] |