web.config重定向工作重写失败,找不到资源

时间:2019-02-22 15:07:57

标签: iis web-config

我想将请求重写到另一个域的特定路径:

<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.

0 个答案:

没有答案