VPS商家大全 →

openlitespeed 环境下 typecho 伪静态规则

openlitespeed 环境下 typecho 伪静态规则

宝塔面板可以卸载 Nginx 直接更换为 OpenLiteSpeed 。在实际应用中,OpenLiteSpeed 比 Nginx 资源占用率更低,Nginx 更换 OpenLiteSpeed 需要注意的事项可以参考本站之前发布的 更换了 OpenLiteSpeed,WordPress 网站使用 OpenLiteSpeed 比 Nginx 资源占用率更低。国人常用的轻量化网站程序 typecho 也支持 OpenLiteSpeed,不过宝塔面板中没有提供 typecho 在 OpenLiteSpeed 环境的伪静态规则

相关阅读个人博客平台选择 Typecho 还是 WordPress ?

可以把下面代码直接复制到宝塔面板的伪静态规则中,保存即可。

规则如下

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-httpd-php application
Simon共 2482 篇文章

【声明】:本博客不参与任何交易及中介服务,只记录 VPS 和域名注册优惠,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。

发表评论