title: IIS Rewrite Rule - negate when query string contains a word
body: <p>I have a rewrite rule to force HTTPS on my site but I need to negate it for a pages that contain a particular query string.</p>
    
      
      
        
        
      
      
    
  <p>This is the rule in my web config. I'm going this url:</p>
  <pre><code>mysite.com/data/map?loc=45&amp;loct=2&amp;clean=true&amp;isForImage=true#2/any/false/869/68/13517/Orange/
  </code></pre>
  <p>but I still get redirected to https. Why isn't my pattern working?</p>