title: IIS URL Rewrite - ignore if URL contains
body: <p>I have the following URL rewrite setup inside web.config working as I would like.</p>
  
  <pre><code>&lt;rule name="Product Rewrite" stopProcessing="true"&gt;
    &lt;match url="^products/([^$]+)/([^$]+)" /&gt;
    &lt;action type="Rewrite" url="products?durl={R:1}&amp;amp;purl={R:2}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>Now I need to exclude any URLs that contain or end with <strong>/action/edit</strong> i.e. <strong>products/action/edit</strong></p>
  
  <p>I understand that I will need a conditions block, but I am not sure what to write.</p>
  
  <p>Any help would be greatly appreciated.</p>