title: How to combine flags using RewriteCond?
body: <p>I am using ISAPI-Rewrite on IIS7.<br>
  How can we combine [NC] and [OR] in a RewriteCond ?  [NC,OR] ?
  What is the simple way to match domains with and without "www." ?  </p>
  
  <p>Here is a draft :</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^old-one.com$ [NC,OR]
  RewriteCond %{HTTP_HOST} ^www.old-one.com$ [NC,OR]
  RewriteCond %{HTTP_HOST} ^old-two.com$ [NC,OR]
  RewriteCond %{HTTP_HOST} ^www.old-two.com$ [NC]
  RewriteRule ^(.*)$ http://www.new-website.com/$1 [QSA,L,R=301]
  </code></pre>