日期:2014-05-19  浏览次数:20420 次

URL重写为什么不能传多参数呢?
我现在有个页面View.aspx要接受两个参数UserName,InfoID

<RewriterRule>
<LookFor> http://([a-zA-Z0-9]*)\.abc\.com/([a-zA-Z0-9-]*) </LookFor>
<SendTo> ~/yy/View.aspx?UserName=$1这要用什么连接InfoID=$2 </SendTo>
</RewriterRule>

用&竟然报错.Configuration   Error  
用空格,也不行,哪位大哥告诉我啊..

------解决方案--------------------
帮顶
------解决方案--------------------
<RewriterRule>
<LookFor> ~/(\d+)/center/(\d+)\.html </LookFor>
<SendTo> <![CDATA[~/center.aspx?tid=$1&oid=$2]]> </SendTo>
</RewriterRule>
------解决方案--------------------
用这个吧:http://www.ssxz.com/iuhxq/index.html