title: IIS URL Rewrite negate conditions not working
body: <p>I want to redirect some pages from an old website (oldsite.com) to a new website (newsite.*) according to the following rules:</p>
  
  <ul>
  <li>All first-level children (/sv, /no, /da, etc) should redirect to their respective counterparts, i.e. newsite.se, newsite.no, newsite.dk, etc.</li>
  <li>All other children/descendants should redirect to the root of the new sites as well, <strong>except</strong> /page1 and /page2 and its descendants.</li>
  </ul>
  
  <p>For this I've created the following rules (for sv in this case):</p>
  
  <pre><code>&lt;rule name="Redirect /sv to .se" stopProcessing="true"&gt;
      &lt;match url="^sv/?$" /&gt;
          &lt;action type="Redirect" url="http://newsite.se" /&gt;
  &lt;/rule&gt;
  &lt;rule name="Redirect /sv/* except some pages" stopProcessing="true"&gt;
      &lt;match url="^sv/.+" /&gt;
      &lt;conditions logicalGrouping="MatchAll"&gt;
          &lt;add input="{REQUEST_URI}" pattern="^sv/page1(.*)" negate="true" /&gt;
          &lt;add input="{REQUEST_URI}" pattern="^sv/page2(.*)" negate="true" /&gt;
      &lt;/conditions&gt;
      &lt;action type="Redirect" url="http://newsite.se" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>The first rule works fine but not the second. The problem is that my negated conditions don't seem to work. When I enter oldsite.com/sv/page1 I still get redirected to newsite.se. Maybe I've misunderstood how negated conditions work, but shouldn't the second rule execute the action if and only if both conditions are true (evaluate to false), i.e. the REQUEST_URI <strong>doesn't</strong> match /page1 and /page2?</p>