我在根据查询字符串参数重定向到另一个URL时遇到了一些问题。我想这重定向进入www.domain.com/signup.aspx?p=1用户:当他们进入IIS URL重写模块:基于查询字符串重定向
www.domain.com/signup现在
<rule name="Signup Redirect 1" stopProcessing="true">
<match url="signup\.aspx\?p=1" />
<conditions logicalGrouping="MatchAll" />
<action type="Redirect" url="signup" redirectType="Temporary" />
</rule>
www.domain.com/ signup.aspx p = 2,他们必须去?
www.domain.com/signup/promocode
<rule name="Signup Redirect 2" stopProcessing="true">
<match url="signup\.aspx\?p=2" />
<conditions logicalGrouping="MatchAll" />
<action type="Redirect" url="signup/promocode" redirectType="Temporary" />
</rule>
以上规则不起作用。什么是正确的方法来做到这一点?提前致谢。
的Gr
的Martijn
感谢它的工作! – 2010-02-14 11:41:11
这对我有用,并为我节省了一天 - 谢谢 – Bala 2013-12-02 06:04:55