title: 500 (URL Rewrite Module Error.) with file that exists
body: <p>This is the rewrite rule: </p>
  
  <pre><code> &lt;rewrite&gt;
     &lt;rules&gt;
       &lt;rule name="redirect all requests" stopProcessing="true"&gt;
         &lt;match url="^(.*)$" ignoreCase="false" /&gt;
           &lt;conditions logicalGrouping="MatchAll"&gt;
             &lt;add input="{REQUEST_FILENAME}" 
                  matchType="IsFile" 
                  negate="true" 
                  pattern="" 
                  ignoreCase="false" /&gt;
           &lt;/conditions&gt;
         &lt;action type="Rewrite" url="index.html" appendQueryString="true" /&gt;
       &lt;/rule&gt;
     &lt;/rules&gt;
  &lt;/rewrite&gt;    
  </code></pre>
  
  <p>Both of the following files exist. One GET succeeds and the other throws a 500.</p>
  
  <p>200 </p>
  
  <pre><code>GET http://greenearth.game/node_modules/aurelia-leaflet/dist/amd/leaflet.js
  </code></pre>
  
  <p>500 (URL Rewrite Module Error.)</p>
  
  <pre><code>GET http://greenearth.game/node_modules/aurelia-open-id-connect/dist/amd/open-id-connect-role-filter.js 
  </code></pre>
  
  <p>The 500 error specifically is: </p>
  
  <blockquote>
    <p>"Cannot add duplicate collection entry of type 'rule' with unique key attribute 'name' set to 'redirect all requests'".</p>
  </blockquote>
  
  <p>Two questions: </p>
  
  <ol>
  <li>Why is the first file giving a 500? </li>
  <li>How can we make it a 200? </li>
  </ol>
  
  <p>Putting <code>&lt;remove name="redirect all requests" /&gt;</code> at the top of the <code>&lt;rules&gt;</code> element answers #2 but not #1. </p>