title: please object: a way to handle rewrite map urls that end with "/"
body: <p>I would like to have your opinion and suggestion regarding the solution to this specific problem:</p>
  
  <p>I have a rewritemap that takes care of a lot of vanity URLs, problem is, users may enter that vanity URL ending with a "/" or no "/", the matching does not occur in both cases, only one is matched, so I decided to create a rule first, that reduces the "/" then let the rewrite map take care of the matching... here is how it looks:</p>
  
  <pre><code>&lt;rewrite&gt;
   &lt;rules&gt;
    &lt;rule name="ReduceLast" stopProcessing="true"&gt;
     &lt;match url="^.+(?=/+$)"/&gt;
     &lt;action type="Redirect" url="{R:0}" redirectType="Permanent"/&gt;
    &lt;/rule&gt;
    &lt;rule name="Redirect Rule" stopProcessing="true"&gt;
     &lt;match url=".*" /&gt;
     &lt;conditions&gt;
      &lt;add input="{StaticRedirects:{URL}}" pattern="(.+)" /&gt;
     &lt;/conditions&gt;
     &lt;action type="Redirect" url="{C:1}" appendQueryString="False" redirectType="Permanent" /&gt;
    &lt;/rule&gt;
   &lt;/rules&gt;
   &lt;rewriteMaps&gt;
    &lt;rewriteMap name="StaticRedirects"&gt;
     &lt;add key="/australia/download" value="http://www.example.com/australia/trial-software.aspx" /&gt;
    &lt;/rewriteMap&gt;
   &lt;/rewriteMaps&gt;
  &lt;/rewrite&gt;
  </code></pre>