我一直在尝试获取一条规则,将某个域限制为仅一个Web API函数。任何与网址无关的请求都将定向到一个api example.com.au/cx/feedback
所以:
http://example.com.au将转到http://example.com.au/cx/feedback
http://example.com.au/feedback将转到http://example.com.au/cx/feedback
http://example.com.au/api/list将转到http://example.com.au/cx/feedback
等等等
我遇到无限循环问题。显然是误会了。
<rule name="example.com.au" redirect" enabled="true" stopProcessing="true">
<match url=" (.*)" />
<conditions >
<add input="{HTTP_HOST}" pattern="^.*example\.com\.au$" negate="true" />
</conditions>
<action type="Redirect" url="cx/feedback" redirectType="Permanent" />
</rule>