Переписать все запросы файлов в подпапку - PullRequest
0 голосов
/ 14 октября 2018

Я хотел бы переписать все запросы файлов (.js, .css и т. Д.) В подпапку и переписать другие запросы в dist/200.html.Я не могу сопоставить запросы файлов.

Может ли <add input="{REQUEST_FILENAME}" matchType="IsFile" /> использоваться только для отмены условий?

<rule name="Routes" stopProcessing="true">
    <match url=".*" />
     <conditions>
      <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
    </conditions
    <action type="Rewrite" url="dist/200.html" />
</rule> 

<rule name="Files" stopProcessing="true">
  <match url="(.*)" />
  <conditions>
    <add input="{REQUEST_FILENAME}" matchType="IsFile" />
  </conditions>
  <action type="Rewrite" url="dist/{R:1}" />
</rule> 
...