title: IIS Forces Slash even with URL Rewrite to remove it
body: <p>I am unable to remove the trailing slash my site's URLs even with the URL rewrite from:  <a href="http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/" rel="noreferrer">http://ruslany.net/2009/04/10-url-rewriting-tips-and-tricks/</a>.</p>
  
  <p>Frustrating really since it should be so simple but my attempts have not produced any results.</p>
  
  <p>I even went as far as to create a test directory and added file called desktops.aspx and and sub folder called desktops.</p>
  
  <p>without the sub directory "/test/desktops" loads fine since i set the default document to look at desktops.aspx. </p>
  
  <p>with a subfolder created and still referencing "/test/desktops" it forces the slash and looks at the sub directory. </p>
  
  <p>Why does IIS does this since its supposed to look for the file first then the sub directory correct? Are there any settings on the server side that would force back the slash?</p>
  
  <p><strong>URL Rewrite Snippet:</strong></p>
  
  <pre><code>&lt;rule name="SEO - Remove trailing slash" stopProcessing="false"&gt;
  &lt;match url="(.+)/$" /&gt;
  &lt;conditions logicalGrouping="MatchAll" trackAllCaptures="false"&gt;
  &lt;add input="{HTTP_METHOD}" pattern="GET" /&gt;
  &lt;add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /&gt;
  &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
  &lt;/conditions&gt;
  &lt;action type="Rewrite" url="_{R:1}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>any help would be welcome</p>