谁能帮忙写个iis7的伪静态的脚本?300JGB酬谢,谢谢!
其实就是淘帝的伪静态,它本身有的伪静态不能用在iis7上,哪位帮忙改一下?谢谢!。。。
哥们的B多啊 金币比你差的远,, 还请哪位大大帮帮忙~ 谢谢 我不会,等待高手吧 <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="article">
<match url="^(+).html$" />
<action type="Rewrite" url="?action=show&id={R:1}" />
</rule>
<rule name="cate">
<match url="^cate(+).html$" />
<action type="Rewrite" url="?action=index&cid={R:1}" />
</rule>
<rule name="article-comments">
<match url="^(+).html#cm(+)$" />
<action type="Rewrite" url="?action=show&id={R:1}&cmid={R:2}&goto=newcm" />
</rule>
<rule name="archive">
<match url="^archive_(+).html$" />
<action type="Rewrite" url="?action=index&setdate={R:1}" />
</rule>
<rule name="page">
<match url="^page(+).html$" />
<action type="Rewrite" url="?action=index&page={R:1}" />
</rule>
<rule name="comments">
<match url="^comments.html$" />
<action type="Rewrite" url="?action=comments" />
</rule>
<rule name="tags">
<match url="^tags.html$" />
<action type="Rewrite" url="?action=tagslist" />
</rule>
<rule name="archives">
<match url="^archives.html$" />
<action type="Rewrite" url="?action=archives" />
</rule>
<rule name="links">
<match url="^links.html$" />
<action type="Rewrite" url="?action=links" />
</rule>
<rule name="search">
<match url="^search.html$" />
<action type="Rewrite" url="?action=search" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration>
参考下 本帖最后由 huli 于 2011-1-16 01:12 编辑
我这样写的可是传到空间上总是500错误
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="goods">
<match url="^goods-(+).html$" />
<action type="Rewrite" url="goods.php\?iid={R:1}" />
</rule>
<rule name="list">
<match url="^list-(+).html$" />
<action type="Rewrite" url="list.php\?catid={R:1}" />
</rule>
<rule name="list-1">
<match url="^list-(+)-(+)-(+)-(+).html$" />
<action type="Rewrite" url="list.php\?catid={R:1}&sortnum={R:2}&sp={R:3}&ep={R:4}" />
</rule>
<rule name="list-2">
<match url="^list-(+)-(+)-(+)-(+)-(+).html$" />
<action type="Rewrite" url="list.php\?catid={R:1}&sortnum={R:2}&sp={R:3}&ep={R:4}
&page={R:5}" />
</rule>
<rule name="list-3">
<match url="^list-(+)-(+)-(+)-(+)-(.+)-(+).html$" />
<action type="Rewrite" url="list.php\?catid={R:1}&sortnum={R:2}&sp={R:3}&ep={R:4}&sq=
{R:5}&page={R:6}" />
</rule>
<rule name="list-4">
<match url="^list-(.+)-(+).html$" />
<action type="Rewrite" url="list.php\?sq={R:1}&catid={R:2}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration> 又测试了一下 前两条规则可以使用,第三条开始以后就不行了,开始500错误,不知道哪里错了~ 狐狸嫁了? 顶一下,不错不错....
页:
[1]