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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] DVBBS转换成dx后 路径要怎么设置成一样

[复制链接]
清晨的故事 发表于 2010-11-30 19:33:34 | 显示全部楼层 |阅读模式
用了dvbbs几年了。越来越觉得不好用。

升级成dx调试成功了。但是发现路径不能设置一样的。这样将可能面临重新开始的风险。

请问。要怎么设置才能将路径不变。谢谢
mccad 发表于 2010-11-30 20:07:08 | 显示全部楼层
你说什么路径。
文件名本身是不同的,一个是ASP系统,一个是PHP系统。
如果你的空间能够同时运行两种系统,则可以通过ASP的转向直接将原来的链接转到新系统中去。不然,就比较麻烦。
如果需要,我可以给你这些转向的文件,只有两个:index.asp和dispbbs.asp。
回复

使用道具 举报

 楼主| 清晨的故事 发表于 2010-12-5 14:15:20 | 显示全部楼层
两个我都用了伪静态,我是说比方说主题,论坛分类。等。地址升完级后如何保持不变
回复

使用道具 举报

mccad 发表于 2010-12-6 08:22:08 | 显示全部楼层
论坛版块ID 主题ID 附件ID 用户ID 都是一样的。
跟帖的ID就变了,但不影响。
如果DV原来使用伪静态的话,可将原来的伪静态解析到新的地址来,下面是我在用的:
  1. # 重写DZ的index.asp
  2. RewriteRule /index_(\d+)_(\d*)_(.*)_(\d*)\.html /forum\.php\?mod=forumdisplay&fid=$1&page=$4 [N,I]
  3. RewriteRule /index_(\d+)_(.*)_(\d*)_(.*)_(\d*)\.html /forum\.php\?mod=forumdisplay&fid=$1&page=$5 [N,I]
  4. RewriteRule /index_(\d+)_(.*)_(\d*)_(\d*)\.html /forum\.php\?mod=forumdisplay&fid=$1&page=$4 [N,I]
  5. RewriteRule /index_(\d+)_(\d*)_(.*)\.html /forum\.php\?mod=forumdisplay&fid=$1&page=$2 [N,I]
  6. RewriteRule /index_(\d+)_(\d*)\.html /forum\.php\?mod=forumdisplay&fid=$1 [N,I]
  7. RewriteRule /index_(\d+)_(\d*)_\.html /forum\.php\?mod=forumdisplay&fid=$1&page=$2 [N,I]
  8. # RewriteRule /index_(\d+)__\.html /forum\.php\?mod=forumdisplay&fid=$1 [N,I]
  9. RewriteRule /index_(\d+)\.html /forum\.php\?mod=forumdisplay&fid=$1 [N,I]
  10. RewriteRule /index\.html(.*) /forum\.php [N,I]



  11. # 重写 DZ dispbbs.asp


  12. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)_(\d*)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2&extra=&page=$6 [N,I]
  13. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2&extra=&page=$5 [N,I]
  14. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)\.html /forum\.php\?mod=viewthread&tid=$2 [N,I]

  15. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\d*)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2&page=$5&authorid=$3 [N,I]
  16. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\d*)_lastid(\d*)\.html /forum\.php\?mod=redirect&tid=$2&goto=lastpost [N,I]
  17. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2&page=$4 [N,I]
  18. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\w+)\.html /forum\.php\?mod=viewthread&tid=$2 [N,I]
  19. RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2 [N,I]
  20. RewriteRule /dispbbs_(\d+)_(\d*)\.html /forum\.php\?mod=viewthread&tid=$2 [N,I]
复制代码
回复

使用道具 举报

Smallbug 发表于 2010-12-6 08:38:54 | 显示全部楼层
LZ可以参考下楼上的,如果有问题请继续跟帖!
回复

使用道具 举报

 楼主| 清晨的故事 发表于 2010-12-6 13:50:40 | 显示全部楼层
非常感谢mccad 的回答,我把解析到新的地址来。会找不到原ID。

可能还是没有解决问题。不知道是不是设置错了?
可以再帮我看看吗?
是这样的我原来的地址是:
http://bbs.elecfans.com/dispbbs_1_135073_2.html
我测试的地址是http://jf228.com/dispbbs_1_135073_2.html
会找不到ID

回复

使用道具 举报

 楼主| 清晨的故事 发表于 2010-12-6 13:57:25 | 显示全部楼层

# 重写index.asp
RewriteRule /index_(\d+)_(\d*)_(.*)_(\d*)\.html /index\.asp\?boardid=$1&topicmode=$2&list_type=$3&page=$4 [N,I]
RewriteRule /index_(\d+)_(.*)_(\d*)_(.*)_(\d*)\.html /index\.asp\?boardid=$1&action=$2&topicmode=$3&list_type=$4&page=$5 [N,I]
RewriteRule /index_(\d+)_(.*)_(\d*)_(\d*)\.html /index\.asp\?boardid=$1&action=$2&topicmode=$3&page=$4 [N,I]
RewriteRule /index_(\d+)_(\d*)_(.*)\.html /index\.asp\?boardid=$1&page=$2&action=$3 [N,I]
RewriteRule /index_(\d+)_(\d*)\.html /index\.asp\?boardid=$1&topicmode=$2 [N,I]
RewriteRule /index_(\d+)_(\d*)_\.html /index\.asp\?boardid=$1&page=$2 [N,I]
# RewriteRule /index_(\d+)__\.html /index\.asp\?boardid=$1 [N,I]
RewriteRule /index_(\d+)\.html /index\.asp\?boardid=$1 [N,I]
RewriteRule /index\.html(.*) /index.asp [N,I]
# 重写dispbbs.asp
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)_(\d*)_(\d*)\.html /dispbbs\.asp\?boardid=$1&replyid=$2&id=$3&skin=$4&page=$5&star=$6 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)_(\d*)\.html /dispbbs\.asp\?boardid=$1&replyid=$2&id=$3&skin=$4&star=$5 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_skin(\d*)\.html /dispbbs.asp\?boardID=$1&replyid=$2&ID=$3&skin=$4 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\d*)\.html /dispbbs.asp\?boardID=$1&ID=$2&page=$3&star=$4 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)_(\w+)\.html /dispbbs.asp\?boardID=$1&ID=$2&page=$3&move=$4 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)_(\d*)\.html /dispbbs.asp\?boardID=$1&ID=$2&page=$3 [N,I]
RewriteRule /dispbbs_(\d+)_(\d*)\.html /dispbbs.asp\?boardID=$1&ID=$2 [N,I]

上面这个是我现在dvbbs在用的。
回复

使用道具 举报

mccad 发表于 2010-12-6 14:11:29 | 显示全部楼层
好象用http://jf228.com/dispbbs_1_135073.html就行,但http://jf228.com/dispbbs_1_135073_2.html就不行了。

但我的站,两种都行:
http://bbs.mjtd.com/dispbbs_1_10000_2.html
http://bbs.mjtd.com/dispbbs_1_10000.html
估计还是复制粘贴我给你的代码有问题。
回复

使用道具 举报

 楼主| 清晨的故事 发表于 2010-12-6 14:29:26 | 显示全部楼层
哥们。这样会产生两个一样的页面。对搜索引擎很不利。。有没有办法哦
回复

使用道具 举报

 楼主| 清晨的故事 发表于 2010-12-6 14:31:04 | 显示全部楼层
可以在QQ上请教一下吗?
我的QQ是: 363760  

谢谢!
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-10-2 12:18 , Processed in 0.099104 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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