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

 找回密码
 立即注册
搜索

[转换] DZNT转换Discuz后的伪静态化

[复制链接]
5ai8 发表于 2008-9-20 13:05:07 | 显示全部楼层 |阅读模式
今天终于把DZNT转换成Discuz6.0,但是转换前的原静态URL失效了,
看了论坛stanley的(PW论坛转换成DZ论坛后的原静态URL失效问题完美解决方案),但我不会修改,在此求高手帮下忙,给我个修改http.conf的方法

附上DZ.NET的伪静态化规则

  1. #
  2. # The set of rewrite rules in this file is partially for illustration, and
  3. # partially for filtering ad requests.  I also have a hosts file that
  4. # redirects known ad servers to my local machine, as per
  5. # http://www.mvps.org/winhelp2002/hosts.htm .
  6. #
  7. # This rewrite rule file redirects the ad requests to the local machine, to a
  8. # "filtered.htm" file.  You drop the "filtered.htm"  into c:\inetsrv\wwwroot and
  9. # you can put anything you like into the filtered.htm  file.  It will display for
  10. # every filtered ad.
  11. #
  12. # Wed, 13 Apr 2005  09:54



  13. # RewriteLog  c:\temp\iirfLog.out
  14. # RewriteLogLevel 3

  15. # MaxMatchCount
  16. #
  17. # Specifies the maximum number of sub-expression matches to
  18. # capture for a single pattern. This specifies the size of the
  19. # array in the C module.  If you have a pattern with more than
  20. # the default number of matches, set this number.
  21. #
  22. # The default is 10.

  23. MaxMatchCount 10

  24. #Start dznt URL Rewrite settings

  25.     RewriteRule ^(.*)/userinfo-([0-9]+)\.html$  $1/userinfo.aspx?userid=$2
  26.     RewriteRule ^(.*)/showforum-([0-9]+)\.html$  $1/showforum.aspx?forumid=$2
  27.     RewriteRule ^(.*)/showtopic-([0-9]+)\.html$  $1/showtopic.aspx?topicid=$2
  28.     RewriteRule ^(.*)/showforum-([0-9]+)-([0-9]+)\.html$  $1/showforum.aspx?forumid=$2&page=$3
  29.     RewriteRule ^(.*)/showtopic-([0-9]+)-([0-9]+)\.html$  $1/showtopic.aspx?topicid=$2&page=$3
  30.     RewriteRule ^(.*)/archiver/showforum-([0-9]+)\.html$  $1/archiver/showforum.aspx?forumid=$2
  31.     RewriteRule ^(.*)/archiver/showtopic-([0-9]+)\.html$  $1/archiver/showtopic.aspx?topicid=$2
  32.     RewriteRule ^(.*)/archiver/showtopic-([0-9]+)-([0-9]+)\.html$  $1/archiver/showtopic.aspx?topicid=$2&page=$3
  33.     RewriteRule ^(.*)/archiver/showforum-([0-9]+)-([0-9]+)\.html$  $1/archiver/showforum.aspx?forumid=$2&page=$3
  34.     RewriteRule ^(.*)/tools/rss-([0-9]+)\.html$  $1/tools/rss.aspx?forumid=$2
  35.     RewriteRule ^(.*)/tools/spacerss-([0-9]+)\.html$  $1/tools/rss.aspx?uid=$2&type=space
  36.     RewriteRule ^(.*)/tools/photorss-([0-9]+)\.html$  $1/tools/rss.aspx?uid=$2&type=photo
  37.     RewriteRule ^(.*)/space\/((\w|\s)+)((\/?))?$  $1/space/index.aspx?user=$2
  38.     RewriteRule ^(.*)/space\/((\w|\s|-)+)((\/?))?\?((.*)+)$  $1/space/index.aspx?user=$2&$6

  39.     RewriteRule ^(.*)/showdebate-([0-9]+)\.html$  $1/showdebate.aspx?topicid=$2
  40.     RewriteRule ^(.*)/showbonus-([0-9]+)\.html$  $1/showbonus.aspx?topicid=$2

  41.     RewriteRule ^(.*)/postgoods-(\d+)*.html$  $1/postgoods.aspx?categoryid=$2
  42.     RewriteRule ^(.*)/showgoodslist-(\d+)(-(\d+))?.html$  $1/showgoodslist.aspx?categoryid=$2&page=$4
  43.     RewriteRule ^(.*)/showgoods-(\d+)*.html$  $1/showgoods.aspx?goodsid=$2



  44. #End dznt URL Rewrite settings


  45. # This is a sample unparsed rule.  Anything that is not
  46. # understood by the INI file grammar is meaningless, and is
  47. # logged but otherwise ignored by Ionic's ISAPI Rewrite Filter (IIRF).

  48. NotParsed  foo bar

复制代码
回复

使用道具 举报

 楼主| 5ai8 发表于 2008-9-20 18:33:47 | 显示全部楼层
自己顶上,希望有高手看见
回复

使用道具 举报

foxfa 发表于 2008-9-20 19:28:58 | 显示全部楼层

我也想要从dznt转到discuz6.x

我也想要从dznt转到discuz6.x,楼主有这样的程序吗?
回复

使用道具 举报

ewenzhou 发表于 2008-10-14 09:34:01 | 显示全部楼层
自己顶上
回复

使用道具 举报

hi1798 发表于 2008-10-14 18:24:17 | 显示全部楼层
学习学习
回复

使用道具 举报

lmgg 发表于 2008-10-14 19:43:22 | 显示全部楼层
DZNT的不能直接套用在DZPHP上
回复

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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