我有一张页面是这样子的。
hotinformation.aspx?type=1
hotinformation.aspx?type=1&sid=2
hotinformation.aspx?type=1&sid=2&page=3&tourl=http://....
请各哪位大侠指点一下url重写的正则表达式,在此谢过了。
<RewriterConfig>
<Rules>
<RewriterRule>
<LookFor>~/hotinformation/(\d+)/(\d+)/(\d+)\.html?tourl=(.+)</LookFor>
<SendTo>~/hotinformation.aspx?type=$1&sid=$2&page=$3&tourl=$4</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/hotinformation/(\d+)/(\d+)\.html</LookFor>
<SendTo>~/hotinformation.aspx?type=$1&sid=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>~/hotinformation/(\d+)\.html</LookFor>
<SendTo>~/hotinformation.aspx?type=$1</SendTo>
</RewriterRule>
</Rules>
</RewriterConfig>