Typecho:伪静态.htaccess规则

Auth:猫饭       Date:2020/03/13       Cat:代码       Word:共343字       Views:83

如题,typecho伪静态.htaccess规则,备用。

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

http跳转https的.htaccess规则

<IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{SERVER_PORT} 80
 RewriteRule ^(.*)$ https://0wu.org/$1 [R=301,L]
</IfModule>

除非注明,猫饭文章均为原创,本文地址 https://maofun.com/1040.html,转载请以链接形式注明出处。

作者: 简介:

《Typecho:伪静态.htaccess规则》留言数:0

发表留言