我正在进行重写过程。我一直坚持这一点。
<rule name="Uk3" stopProcessing="true">
<match url="^activities/exploring/tours/tabid/3422/id/5205/k/([a-z0-9A-Z-\s]+)/p/1/nickis-beach-rides.aspx$" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" pattern="^(www.)?abc.co.uk$" />
</conditions>
<action type="Redirect" url="/activities/exploring/tours.aspx" />
</rule>
上述规则正在做什么:
它匹配“activities / exploration / tours / tabid / 3422 / id / 5205 / k /”,它可能包含“/p/1/nickis-beach-rides.aspx”之后的任何内容。它适用于除以下内容之外的所有URL:
http://www.abc.co.uk/activities/exploring/tours/tabid/3422/id/5205/k/enjoy%20your%20morning%20cofee%20and%20evening%20cocktails%20on%20/p/1/nickis-beach-rides.aspx
其中包含“享受%20your%20morning%20cofee%20和%20evening%20cocktails%20on%20”空格作为导致此规则停止工作的最后一个字符,
如何添加上述网址以便相应地工作?