今天终于把DZNT转换成Discuz6.0,但是转换前的原静态URL失效了,
看了论坛stanley的(PW论坛转换成DZ论坛后的原静态URL失效问题完美解决方案),但我不会修改,在此求高手帮下忙,给我个修改http.conf的方法
附上DZ.NET的伪静态化规则
- #
- # The set of rewrite rules in this file is partially for illustration, and
- # partially for filtering ad requests. I also have a hosts file that
- # redirects known ad servers to my local machine, as per
- # http://www.mvps.org/winhelp2002/hosts.htm .
- #
- # This rewrite rule file redirects the ad requests to the local machine, to a
- # "filtered.htm" file. You drop the "filtered.htm" into c:\inetsrv\wwwroot and
- # you can put anything you like into the filtered.htm file. It will display for
- # every filtered ad.
- #
- # Wed, 13 Apr 2005 09:54
- # RewriteLog c:\temp\iirfLog.out
- # RewriteLogLevel 3
- # MaxMatchCount
- #
- # Specifies the maximum number of sub-expression matches to
- # capture for a single pattern. This specifies the size of the
- # array in the C module. If you have a pattern with more than
- # the default number of matches, set this number.
- #
- # The default is 10.
- MaxMatchCount 10
- #Start dznt URL Rewrite settings
- RewriteRule ^(.*)/userinfo-([0-9]+)\.html$ $1/userinfo.aspx?userid=$2
- RewriteRule ^(.*)/showforum-([0-9]+)\.html$ $1/showforum.aspx?forumid=$2
- RewriteRule ^(.*)/showtopic-([0-9]+)\.html$ $1/showtopic.aspx?topicid=$2
- RewriteRule ^(.*)/showforum-([0-9]+)-([0-9]+)\.html$ $1/showforum.aspx?forumid=$2&page=$3
- RewriteRule ^(.*)/showtopic-([0-9]+)-([0-9]+)\.html$ $1/showtopic.aspx?topicid=$2&page=$3
- RewriteRule ^(.*)/archiver/showforum-([0-9]+)\.html$ $1/archiver/showforum.aspx?forumid=$2
- RewriteRule ^(.*)/archiver/showtopic-([0-9]+)\.html$ $1/archiver/showtopic.aspx?topicid=$2
- RewriteRule ^(.*)/archiver/showtopic-([0-9]+)-([0-9]+)\.html$ $1/archiver/showtopic.aspx?topicid=$2&page=$3
- RewriteRule ^(.*)/archiver/showforum-([0-9]+)-([0-9]+)\.html$ $1/archiver/showforum.aspx?forumid=$2&page=$3
- RewriteRule ^(.*)/tools/rss-([0-9]+)\.html$ $1/tools/rss.aspx?forumid=$2
- RewriteRule ^(.*)/tools/spacerss-([0-9]+)\.html$ $1/tools/rss.aspx?uid=$2&type=space
- RewriteRule ^(.*)/tools/photorss-([0-9]+)\.html$ $1/tools/rss.aspx?uid=$2&type=photo
- RewriteRule ^(.*)/space\/((\w|\s)+)((\/?))?$ $1/space/index.aspx?user=$2
- RewriteRule ^(.*)/space\/((\w|\s|-)+)((\/?))?\?((.*)+)$ $1/space/index.aspx?user=$2&$6
- RewriteRule ^(.*)/showdebate-([0-9]+)\.html$ $1/showdebate.aspx?topicid=$2
- RewriteRule ^(.*)/showbonus-([0-9]+)\.html$ $1/showbonus.aspx?topicid=$2
- RewriteRule ^(.*)/postgoods-(\d+)*.html$ $1/postgoods.aspx?categoryid=$2
- RewriteRule ^(.*)/showgoodslist-(\d+)(-(\d+))?.html$ $1/showgoodslist.aspx?categoryid=$2&page=$4
- RewriteRule ^(.*)/showgoods-(\d+)*.html$ $1/showgoods.aspx?goodsid=$2
- #End dznt URL Rewrite settings
- # This is a sample unparsed rule. Anything that is not
- # understood by the INI file grammar is meaningless, and is
- # logged but otherwise ignored by Ionic's ISAPI Rewrite Filter (IIRF).
- NotParsed foo bar
复制代码 |