我想将请求重写到另一个域的特定路径:
<rule name="Redirect Lookup to new api" stopProcessing="true">
<match url="api/lookup" ignoreCase="true" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
</conditions>
<action type="Rewrite" url="https://xxx.azurewebsites.net/lookup" appendQueryString="true" />
</rule>
它可以与重定向一起使用,但是通过重写我会收到此错误:
The resource you are looking for has been removed, had its name changed, or is temporarily unavailable.