.htaccess 强制跳转 www , https
372
|
2019-10-26 10:53:00
可根据需求自行更改,删除
可根据需求自行更改,删除
Options +FollowSymlinks -Multiviews
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301]