在最新发布的 Discuz!5.5 版本,截止到今天,在 Zeus 上同时开启左右分栏和静态化在切换时可能会出现 Zeus 对 URL 解析不正确,导致显示找不到该页。
解决方案,更新 Request Rewriting 中的 Rewrite Script (所谓的URL-Rewrite):
match URL into $ with ^(.*)/attachment-([0-9]+)-([0-9]+)\.html?*(.*)$
if matched then
set URL = $1/attachpage.php?aid=$2&tid=$3&$4
endif
match URL into $ with ^(.*)/archiver/([a-z0-9\-]+\.html)?*(.*)$
if matched then
set URL = $1/archiver/index.php?$2&$3
endif
match URL into $ with ^(.*)/forum-([0-9]+)-([0-9]+)\.html?*(.*)$
if matched then
set URL = $1/forumdisplay.php?fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html?*(.*)$
if matched then
set URL = $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3&$4
endif
match URL into $ with ^(.*)/profile-(username|uid)-(.+?)\.html?*(.*)$
if matched then
set URL = $1/viewpro.php?$2=$3&$4
match URL into $ with ^(.*)/space-(username|uid)-(.+?)\.html?*(.*)$
if matched then
set URL = $1/space.php?$2=$3&$4
endif
endif复制代码
经过测试,在 Zeus Server V4 上通过。
[
本帖最后由 heyond 于 2007-3-27 16:00 编辑 ]