【发布时间】:2017-02-14 06:54:30
【问题描述】:
在web.config 中,我添加了一个重写规则,直到在sendto 部分添加& 字符之前,所有工作都有效
<RewriterRule>
<LookFor>.*-p(.\d+)-news</LookFor>
<SendTo>~/default.aspx?articleid=$1</SendTo>
</RewriterRule>
它有效,但是当我在<SendTo> 中添加更多 GET 参数时,重写根本不起作用。
<RewriterRule>
<LookFor>.*-p(.\d+)-news</LookFor>
<SendTo>~/default.aspx?articleid=$1&tabid=112312</SendTo>
</RewriterRule>
【问题讨论】:
标签: asp.net iis url-rewriting