分享

写回答

发帖

[提问] win主机GD的伪静态怎么写?

回答|共 13 个

tpxp

发表于 2010-10-24 10:56:29 | 显示全部楼层

是什么程序
不同的程序 不一样的web config

参考这个:
http://bbs.idcspy.com/viewthread.php?tid=71669&highlight=%E4%BC%AA%E9%9D%99%E6%80%81

jsczy

发表于 2010-10-25 01:33:04 | 显示全部楼层

<?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer>


<rewrite> <rules>

<rule name="Imported Rule 17"> <match url=" ^taosp/([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/product.php\?iid=$2"

appendQueryString="false" /> </rule>


<rule name="Imported Rule 18"> <match url=" ^taolb/([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/list.php\?catid=$2"

appendQueryString="false" /> </rule>

<rule name="Imported Rule 19"> <match url="^taolb/([0-9]+)-0.html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/list.php\?catid=

$2&sort=commissionNum_desc" appendQueryString="false" /> </rule>


<rule name="Imported Rule 20"> <match url="^taolb/([0-9]+)-0-([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/list.php\?

catid=$2&sort=commissionNum_desc&sp=$3&ep=$4" appendQueryString="false" /> </rule>


<rule name="Imported Rule 21"> <match url="^taolb/([0-9]+)-0-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/list.php\?catid=$2&sort=commissionNum_desc&sp=$3&ep=$4&page=$5" appendQueryString="false" /> </rule>

<rule name="Imported Rule 22"> <match url="^taolb/([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/list.php\?catid=

$2&sortnum=$3" appendQueryString="false" /> </rule>


<rule name="Imported Rule 23"> <match url="^taolb/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/list.php

\?catid=$2&sortnum=$3&sp=$4&ep=$5" appendQueryString="false" /> </rule>




<rule name="Imported Rule 24"> <match url="^taolb/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-.html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/list.php\?catid=$2&sortnum=$3&sp=$4&ep=$5" appendQueryString="false" /> </rule>


<rule name="Imported Rule 25"> <match url="^taolb/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)--([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/list.php\?catid=$2&sortnum=$3&sp=$4&ep=$5&page=$6" appendQueryString="false" /> </rule>



<rule name="Imported Rule 26"> <match url="^taolb/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/list.php\?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6&page=$7" appendQueryString="false" /> </rule>


<rule name="Imported Rule 27"> <match url="^taolb/([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+)-(.+).html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/list.php\?catid=$2&sortnum=$3&sp=$4&ep=$5&q=$6" appendQueryString="false" /> </rule>



<rule name="Imported Rule 28"> <match url="^taodp/(.+)-([0-9]+)-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite"

url="/taobao.goatao/shop.php\?user=$2&sortnum=$3&sp=$4&ep=$5&page=$6" appendQueryString="false" /> </rule>


<rule name="Imported Rule 29"> <match url="^taodp/(.+)-([0-9]+)-([0-9]+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/shop.php\?

user=$2&sortnum=$3&sp=$4&ep=$5" appendQueryString="false" /> </rule>

<rule name="Imported Rule 30"> <match url="^taodp/(.+)-([0-9]+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/shop.php\?user=$2&sortnum=$3"

appendQueryString="false" /> </rule>


<rule name="Imported Rule 31"> <match url="^taodp/(.+).html$" ignoreCase="false" /> <action type="Rewrite" url="/taobao.goatao/shop.php\?user=$2"

appendQueryString="false" /> </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>
为什么我传上去之后网站就无法打开了啊?请斑竹帮忙改下,谢谢!

add.c

发表于 2010-10-25 09:47:18 | 显示全部楼层

我不会代码, 爱莫能助

jsczy

发表于 2010-10-25 12:41:07 | 显示全部楼层

斑竹谢谢了

怎么论坛就没有人帮忙呢?

我弄了几天还是无法搞定,好郁闷啊!
您需要登录后才可以回帖 登录 | 注册

本版积分规则