Url rewriting url重写规则不忽略对文件的请求

Url rewriting url重写规则不忽略对文件的请求,url-rewriting,asp.net-core,.net-core,Url Rewriting,Asp.net Core,.net Core,IsFile无法工作,因为该文件不是IIS期望的位置。对于Asp.Net 4应用程序,index.html文件应该位于站点根目录中,但对于Asp.Net核心应用程序,该文件位于子目录中 尝试改用新的重写中间件,它知道文件在新的Asp.Net核心布局中的位置。 更新了URL重写中间件文档的链接: <rule name="AngularJS Routes" stopProcessing="true"> <match url=".*" /> &l



IsFile无法工作,因为该文件不是IIS期望的位置。对于Asp.Net 4应用程序,index.html文件应该位于站点根目录中,但对于Asp.Net核心应用程序,该文件位于子目录中

尝试改用新的重写中间件,它知道文件在新的Asp.Net核心布局中的位置。

更新了URL重写中间件文档的链接:
    <rule name="AngularJS Routes" stopProcessing="true">
      <match url=".*" />
      <conditions logicalGrouping="MatchAll">
        <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />

      </conditions>
      <action type="Rewrite" url="/index.html" />
    </rule>
<script src="lib/jquery/dist/jquery.min.js"></script>