0
我使用URLRewrite模塊在web.cinfig中設置了下面的重定向規則。URL重寫重定向到相同的頁面
請參閱規則1和規則2得到相同的頁面名稱(Contact.aspx),但頁面位於不同的文件夾中,並應重定向到不同的位置。相反,所有事情都將以'Rule1'爲目標。 任何人都看看它,並幫助我解決這個問題?在URL的開頭
<rule name="Rule1" patternSyntax="ECMAScript" stopProcessing="true">
<match url="Service/Contact.aspx/?" />
<action type="Redirect" url="http://www.samplesite.com/me-two/help/contact" appendQueryString="false" redirectType="Permanent" />
</rule>
<rule name="Rule2" patternSyntax="ECMAScript" stopProcessing="true">
<match url="Commercial/Service/Contact.aspx/?" />
<action type="Redirect" url="http://www.samplesite.com/commercial/help/contact" appendQueryString="false" redirectType="Permanent" />
</rule>
<rule name="Rule3" patternSyntax="ECMAScript" stopProcessing="true">
<match url="Service/Contact.aspx/?" />
<action type="Redirect" url="http://www.otherwebsite.com/commercial/help/contact" appendQueryString="false" redirectType="Permanent" />
</rule>