@kennytian
高手帮忙写的,你可以看看。
我看你那个网站了挺好的。
有空可以看我刚做的这个http://www.aicuxiao.cn
<a href= ' <%=one% >-<%#Eval("two") % >-<%# Eval("three") % >.aspx ' >qqq </a >
<rewrite url="(\d+)-(\d+)-(\d+).aspx" to="product.aspx?oneid=$1&twoid=$2&threeid=$3" / >
高手帮忙写的,你可以看看。
我看你那个网站了挺好的。
有空可以看我刚做的这个http://www.aicuxiao.cn
<a href= ' <%=one% >-<%#Eval("two") % >-<%# Eval("three") % >.aspx ' >qqq </a >
<rewrite url="(\d+)-(\d+)-(\d+).aspx" to="product.aspx?oneid=$1&twoid=$2&threeid=$3" / >
三个ID必须加适当的分隔符..否则谁会知道你哪几个数字是对应哪个ID啊?例如
123456.aspx你知道我三个ID分别是多少吗?我三个ID可以是12,34,56,或者1,2345,6....
<rewrite url="~/products/(\d+).aspx" to="~/products.aspx?category=$1" / >
<rewrite url="~/game/(.+)-(.+)-(.+)\.shtml" to="~/game/yxxz.aspx?type=$3&cpy=$1&xh=$2" />
对应地址
http://games.lotgame.cn/game/all-all-22.shtml
<rewrite url="~/products_([a-zA-Z0-9]+)_([a-zA-Z0-9]+)_([a-zA-Z0-9]+).html$" to="~/products.aspx?plid=$1&dl=$2&dl2=$3" processing="stop"/>