刚把dv转成dz用的linux+zeus现在把改进后的zeus rewrite规则贡献出来,
能够保证原来的.asp连接地址仍然可以访问,
添加上了原来动网论坛的板块,帖子,用户资料跳转到dz的zeus 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
- endif
- match URL into $ with ^(.*)/space-(username|uid)-(.+?)\.html?*(.*)$
- if matched then
- set URL = $1/space.php?$2=$3&$4
- endif
- match URL into $ with ^(.*)/list.asp(.+?)(boardid=)([0-9]+)$
- if matched then
- set URL = $1/forumdisplay.php?fid=$4
- endif
- match URL into $ with ^(.*)/index.asp(.+?)(boardid=)([0-9]+)$
- if matched then
- set URL = $1/forumdisplay.php?fid=$4
- endif
- match URL into $ with ^(.*)/dispuser.asp(.+?)(id=)([0-9]+)$
- if matched then
- set URL = $1/viewpro.php?uid=$4
- endif
- match URL into $ with ^(.*)/dispuser.asp(.+?)(username=)(.+?)$
- if matched then
- set URL = $1/viewpro.php?username=$4
- endif
- match URL into $ with ^(.*)/dispbbs.asp(.+?)(id=)([0-9]+)
- if matched then
- set URL = $1/viewthread.php?tid=$4
- endif
- match URL into $ with ^(.*)/dispbbs.asp(.+?)(ID=)([0-9]+)
- if matched then
- set URL = $1/viewthread.php?tid=$4
- endif
- match URL into $ with ^(.*)/index.asp
- if matched then
- set URL = $1/index.php
- endif
复制代码
[ 本帖最后由 novaviva 于 2007-4-10 15:27 编辑 ] |