maxcms伪静态支持 FOR IIS7-rewite
2010/02/08 | 9:31 上午分类:IIS7-rewrite | 905 views
一位朋友用的国外的godaddy的空间,需要iis7的rewrite,帮他改正了一下,顺便发布出来,保存为web.config文件放到网站根目录下即可
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="channel">
<match url="^category/index(.+?).html$" />
<action type="Rewrite" url="channel/index.asp?{R:1}.html" />
</rule>
<rule name="content">
<match url="^movie/index([0-9]+).html$" />
<action type="Rewrite" url="content/index.asp?{R:1}.html" />
</rule>
<rule name="play">
<match url="^player/([0-9]+)-([0-9]+)-([0-9]+).html$" />
<action type="Rewrite" url="play/index.asp?{R:1}.html" />
</rule>
<rule name="topic.index">
<match url="zt/index.html" />
<action type="Rewrite" url="zt/index.asp" />
</rule>
<rule name="topic">
<match url="^zt/([0-9]+).html$" />
<action type="Rewrite" url="zt/index.asp?{R:1}.html" />
</rule>
<rule name="news.index">
<match url="news/index.html" />
<action type="Rewrite" url="news/?index.html" />
</rule>
<rule name="news">
<match url="^news/([0-9]+).html$" />
<action type="Rewrite" url="news/index.asp?{R:1}.html" />
</rule>
<rule name="index.html">
<match url="index.html" />
<action type="Rewrite" url="index.asp" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration> |


















衣不如新 回复:
三月 11th, 2010 at 9:30 上午
应该是这样
RewriteRule ^(.*)/research([0-9]+)-([0-9]+).htm $1/research.asp?BigClassID=$2&page=$3你试一下对不对
[回复]