0
一个特定的页面我要添加打开下面的页面 http://test.com/Collection.aspx?title=Women追加查询字符串在重写规则的Web.config
为
和
http://tests.com/Collection.aspx?title=Women
as
我试图使用下面的重写规则,但这些工作的所有页面,我只是想实现这个特定的部分。
<rule name="RedirectUserFriendlsssyURL1" stopProcessing="true">
<match url="^Collection\.aspx$" />
<conditions>
<add input="{REQUEST_METHOD}" pattern="^POST$" negate="true" />
<add input="{QUERY_STRING}" pattern="^title=([^=&]+)$" />
</conditions>
<action type="Redirect" url="{C:1}" appendQueryString="false" />
</rule>
<rule name="RewriteUserFriendlyURL1" stopProcessing="true">
<match url="^([^/]+)/?$" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="Collection.aspx?title={R:1}" />
</rule>
请帮我,我该如何做这些特定页面只。其实如果我申请所有页面,它会阻止其他一些功能的工作。