Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

[经验] DV转DZ后,动网论坛.asp连接地址跳转到DZ的rewrite规则(zeus服务器的)

[复制链接]
novaviva 发表于 2007-4-10 14:30:16 | 显示全部楼层 |阅读模式
刚把dv转成dz用的linux+zeus现在把改进后的zeus rewrite规则贡献出来,
能够保证原来的.asp连接地址仍然可以访问,
添加上了原来动网论坛的板块,帖子,用户资料跳转到dz的zeus rewrite规则,
做的不够成熟,欢迎批评拍砖!!!

  1. match URL into $ with ^(.*)/attachment-([0-9]+)-([0-9]+)\.html?*(.*)$
  2. if matched then
  3.   set URL = $1/attachpage.php?aid=$2&tid=$3&$4
  4. endif
  5. match URL into $ with ^(.*)/archiver/([a-z0-9\-]+\.html)?*(.*)$
  6. if matched then
  7.   set URL = $1/archiver/index.php?$2&$3
  8. endif
  9. match URL into $ with ^(.*)/forum-([0-9]+)-([0-9]+)\.html?*(.*)$
  10. if matched then
  11.   set URL = $1/forumdisplay.php?fid=$2&page=$3&$4
  12. endif
  13. match URL into $ with ^(.*)/thread-([0-9]+)-([0-9]+)-([0-9]+)\.html?*(.*)$
  14. if matched then
  15.   set URL = $1/viewthread.php?tid=$2&extra=page\%3D$4&page=$3&$4
  16. endif
  17. match URL into $ with ^(.*)/profile-(username|uid)-(.+?)\.html?*(.*)$
  18. if matched then
  19.   set URL = $1/viewpro.php?$2=$3&$4
  20. endif
  21. match URL into $ with ^(.*)/space-(username|uid)-(.+?)\.html?*(.*)$
  22. if matched then
  23.   set URL = $1/space.php?$2=$3&$4
  24. endif
  25. match URL into $ with ^(.*)/list.asp(.+?)(boardid=)([0-9]+)$
  26. if matched then
  27.   set URL = $1/forumdisplay.php?fid=$4
  28. endif
  29. match URL into $ with ^(.*)/index.asp(.+?)(boardid=)([0-9]+)$
  30. if matched then
  31.   set URL = $1/forumdisplay.php?fid=$4
  32. endif
  33. match URL into $ with ^(.*)/dispuser.asp(.+?)(id=)([0-9]+)$
  34. if matched then
  35.   set URL = $1/viewpro.php?uid=$4
  36. endif
  37. match URL into $ with ^(.*)/dispuser.asp(.+?)(username=)(.+?)$
  38. if matched then
  39.   set URL = $1/viewpro.php?username=$4
  40. endif
  41. match URL into $ with ^(.*)/dispbbs.asp(.+?)(id=)([0-9]+)
  42. if matched then
  43.   set URL = $1/viewthread.php?tid=$4
  44. endif
  45. match URL into $ with ^(.*)/dispbbs.asp(.+?)(ID=)([0-9]+)
  46. if matched then
  47.   set URL = $1/viewthread.php?tid=$4
  48. endif
  49. match URL into $ with ^(.*)/index.asp
  50. if matched then
  51.   set URL = $1/index.php
  52. endif
复制代码

[ 本帖最后由 novaviva 于 2007-4-10 15:27 编辑 ]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-9-14 18:20 , Processed in 0.096803 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表