title: IIS rewriting url
body: <p>I can't figure out how to solve this problem with url rewriting:</p>
  
  <p>urls following this pattern </p>
  
  <p>app/(.*) </p>
  
  <p>should be redirected to app/index.cshtml</p>
  
  <p>However the app folder contains resources such as sub-folders, js files and html files. These should be ignored an no redirection should be done.</p>
  
  <p>Here's how Ive done it :</p>
  
  <pre><code> &lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Rule 1" stopProcessing="true"&gt;
        &lt;match url="app/(.*/.js)" /&gt;
        &lt;action type="None" /&gt;
      &lt;/rule&gt;
      &lt;rule name="Rule 2"&gt;
        &lt;match url="app/(.*)" /&gt;
        &lt;action type="Rewrite" url="app/index.cshtml" /&gt;
      &lt;/rule&gt;
  
    &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>I've only tried to exclude js files for now, but when I browse to app/someurl, I get an error because one of the js files cannot be loaded. I think that's because the first rule does not work.</p>
  
  <p>Can you help ?</p>