KLOXO配置Lighttpd伪静态(在kloxo面板开启url rewrite)

作者:zqcheng    发布于8年前 (2010-11-26)    阅读:  240  次

kloxo面板支持discuz论坛,phpwind论坛的伪静态吗?经过我们的测试,完全支持!

Lighttpd配置phpwind伪静态

首先,需要在kloxo面板切换apache程序为lighttpd程序,因为他默认就开启url rewrite支持。

设置Lighttpd的phpwind伪静态规则:   url.rewrite = (“^(.*)-htm-(.*)$” => “$1.php?$2”)

在 域名=》脚本=》 lighttpd地址重写规则

重启Lighttpd,如下图,在 服务器:linux =》服务=》点击 lighttpd 这一行第3个蓝色的圆点(我已经加了阴影)

 Lighttpd配置phpWind伪静态(在kloxo面板开启url rewrite) - 网络派对 - 网络派对
弄好了后就直接去discuz!后台开启,即可!

Lighttpd的phpwind伪静态规则:  

url.rewrite = (“^(.*)-htm-(.*)$” => “$1.php?$2”)

WordPress 的lighttpd的rewrite(伪静态)规则如下

url.rewrite = (
"^/(wp-.+).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/(.+)/?$" => "/index.php/$1"
)

Discuz 的lighttpd的rewrite(伪静态)规则如下


url.rewrite-once = (
"^/archiver/((fid|tid)-[w-]+.html)$" => "archiver/index.php?$1",
"^/forum-([0-9]+)-([0-9]+).html$" => "forumdisplay.php?fid=$1&page=$2",
"^/thread-([0-9]+)-([0-9]+)-([0-9]+).html$" => "viewthread.php?tid=$1&extra=page=$3&page=$2",
"^/space-(username|uid)-(.+).html$" => "space.php?$1=$2",
"^/tag-(.+).html$" => "tag.php?name=$1"