Alamai.vip

【https】Typecho全站伪静态+SSL启用全站https+301重定向
Typecho全站伪静态+SSL启用全站https+301重定向需要搬运代码的,自己修改:<IfModule...
扫描右侧二维码阅读全文
01
2019/04

【https】Typecho全站伪静态+SSL启用全站https+301重定向

Typecho全站伪静态+SSL启用全站https+301重定向

需要搬运代码的,自己修改:

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteBase /

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

</IfModule>

RewriteEngine On
RewriteCond %{HTTP_HOST} ^alimai.vip [NC]
RewriteRule ^(.*)$ https://www.alimai.vip/$1 [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.alimai.vip/$1 [L,R=301]

2019-04-01 15:50:24 星期一

Last modification:April 21st, 2019 at 03:07 pm

Leave a Comment