找回密码
 注册
【阿里云】2核2G云服务器新老同享 99元/年,续费同价,云服务器3年机/5年机限时抢购,低至 2.5折华为云精选云产品特惠糖果主机Jtti,新加坡服务器,美国服务器,香港服务器,海外云服务器
查看: 1338|回复: 8

谁能帮忙写个iis7的伪静态的脚本?300JGB酬谢,谢谢!

[复制链接]
发表于 2011 年 1 月 15 日 11:59:52 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

×
其实就是淘帝的伪静态,它本身有的伪静态不能用在iis7上,哪位帮忙改一下?谢谢!

httpd.rar (301 Bytes, 下载次数: 177)
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
发表于 2011 年 1 月 15 日 12:16:41 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
。。。
哥们的B多啊
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2011 年 1 月 15 日 12:42:25 | 显示全部楼层
金币比你差的远,, 还请哪位大大帮帮忙~ 谢谢
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2011 年 1 月 15 日 13:28:20 | 显示全部楼层
我不会,等待高手吧
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2011 年 1 月 16 日 00:51:32 | 显示全部楼层
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="article">
<match url="^([0-9]+).html$" />
<action type="Rewrite" url="?action=show&amp;id={R:1}" />
</rule>
<rule name="cate">
<match url="^cate([0-9]+).html$" />
<action type="Rewrite" url="?action=index&amp;cid={R:1}" />
</rule>
<rule name="article-comments">
<match url="^([0-9]+).html#cm([0-9]+)$" />
<action type="Rewrite" url="?action=show&amp;id={R:1}&amp;cmid={R:2}&amp;goto=newcm" />
</rule>
<rule name="archive">
<match url="^archive_([0-9]+).html$" />
<action type="Rewrite" url="?action=index&amp;setdate={R:1}" />
</rule>
<rule name="page">
<match url="^page([0-9]+).html$" />
<action type="Rewrite" url="?action=index&amp;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>

参考下
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2011 年 1 月 16 日 01:11:21 | 显示全部楼层
本帖最后由 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-([0-9]+).html$" />
<action type="Rewrite" url="goods.php\?iid={R:1}" />
</rule>
<rule name="list">
<match url="^list-([0-9]+).html$" />
<action type="Rewrite" url="list.php\?catid={R:1}" />
</rule>
<rule name="list-1">
<match url="^list-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).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-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).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-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)-([0-9]+).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-(.+)-([0-9]+).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>
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

 楼主| 发表于 2011 年 1 月 16 日 02:24:39 | 显示全部楼层
【腾讯云】2核2G云服务器新老同享 99元/年,续费同价
又测试了一下 前两条规则可以使用,第三条开始以后就不行了,开始500错误,不知道哪里错了~
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2011 年 1 月 16 日 04:44:12 | 显示全部楼层
狐狸嫁了?
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

发表于 2011 年 2 月 18 日 17:05:04 | 显示全部楼层
顶一下,不错不错....
Jgwy.Com - Free Web Hosting Guide & Directory In China since 2001! Jgwy.Net-Jglt.Net
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|金光论坛

GMT+8, 2024 年 9 月 20 日 11:45 , Processed in 0.103365 second(s), 24 queries .

Powered by Discuz! X3.5

© 2001-2023 Discuz! Team.

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