终于全面启用了https

186人参与 |分类: 站长资讯||时间: 2019年11月29日

最近劫持比较严重,所以今天开启了https,百度HTTPS还在认证中······

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^不带www$ [NC]
RewriteRule ^(.*)$ https://带www$1 [R=301,L]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>