title: iis 7 url rewrite redirect file in directory
body: <p>I am trying to redirect a url of the form</p>
  
  <pre><code>http://localhost:8065/Documents/anything.pdf
  </code></pre>
  
  <p>I want this to go to a different site (with the same filename but I can't even get it to go to the other site). Here's my script:</p>
  
  <pre><code>&lt;rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Archibald" patternSyntax="ECMAScript" stopProcessing="true"&gt;
        &lt;match url="^/documents/.+\.(?:pdf)$" /&gt;
          &lt;action type="Redirect" url="http:\\www.dorkingsos.org.uk" /&gt;
          &lt;conditions&gt;
          &lt;/conditions&gt;
        &lt;/rule&gt;
   &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>
  
  <p>Why doesn't it work?</p>