Iis 7 在iis服务器上托管angular应用程序后,直接url不起作用,或者enter上的页面刷新不起作用

Iis 7 在iis服务器上托管angular应用程序后,直接url不起作用,或者enter上的页面刷新不起作用,iis-7,angular2-routing,angular4-router,Iis 7,Angular2 Routing,Angular4 Router,请查找web.config代码 <configuration> <system.webServer> <rewrite> <rules> <rule name="AngularJS" stopProcessing="true"> <match url=".*" /> <conditions logicalGrouping="MatchAll

请查找web.config代码

<configuration>
  <system.webServer>
    <rewrite>
      <rules>
        <rule name="AngularJS" stopProcessing="true">
          <match url=".*" />
          <conditions logicalGrouping="MatchAll">
            <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
          </conditions>
          <action type="Rewrite" url="/" />
        </rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

每当我输入URL ex myapp/orderform时,它总是呈现到主页,或者给出文件或目录不存在的错误