本帖最后由 skyhoo2008 于 2011-6-2 09:53 编辑
由于本站采用的是lighttpd的VPS服务器,在升级到DZ 2.0 的时候遇到点问题,问题很简单,版块列表及文章的伪静态都是正常的可以正常访问,只是 blog和archiver出现错误,不能访问。没有办法,暂时只能将这两块的伪静态给先去掉,希望高手能帮最后的两条规则重新写一下,下面是我的 lighttpd规则,前面是正常的,只是最后面两条错误,忘指正。。。。
"^/blog-([0-9]+)-([0-9]+)\.html$" => "/home.php?mod=space&uid=$2&do=blog&page=$2&$3",
"^/archiver-(fid|tid)-([0-9]+)\.html$" => "/archiver/index.php?action=$1&page=$2&%3",
我现在的lighttpd 伪静态规则:
- url.rewrite-once = (
- "^/topic-(.+)\.html$" => "/portal.php?mod=topic&topic=$1&$2",
- "^/article-([0-9]+)-([0-9]+)\.html$" => "/portal.php?mod=view&aid=$1&page=$2&$3",
- "^/forum-(\w+)-([0-9]+)\.html$" => "/forum.php?mod=forumdisplay&fid=$1&page=$2&$3",
- "^/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" => "/forum.php?mod=viewthread&tid=$1&extra=page%3D$3&page=$2&$4",
- "^/group-([0-9]+)-([0-9]+)\.html$" => "/forum.php?mod=group&fid=$1&page=$2&$3",
- "^/space-(username|uid)-(.+)\.html$" => "/home.php?mod=space&$1=$2&$3",
- "^/blog-([0-9]+)-([0-9]+)\.html$" => "/home.php?mod=space&uid=$2&do=blog&page=$2&$3",
- "^/archiver-(fid|tid)-([0-9]+)\.html$" => "/archiver/index.php?action=$1&page=$2&%3",
- "^/([a-z]+)-(.+)\.html$" => "/$1.php?rewrite=$2&$3"
- )
复制代码
忘记说了,要想看测试网站请访问 webos论坛 http://www.webosbbs.com
|