openlitespeed 环境下 typecho 伪静态规则

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

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

规则如下

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
超兽vps共 6279 篇文章

本博客内容仅供信息参考,主要记录我个人关注的主机测评结果和优惠活动。本站不参与任何商品或服务交易,也不提供中介服务;文中内容不构成购买或交易建议,本站不对其准确性、完整性、时效性或适用性作任何明示或默示保证

标签

发表评论