title: web.config redirect multiple domains to one AND redirect HTTP to HTTPs
body: <p>I am using web.config to redirect all HTTP traffic to a HTTPs website</p>
  
  <pre><code>&lt;rule name="Redirect to https" stopProcessing="true"&gt;
      &lt;match url="(.*)" /&gt;
          &lt;conditions&gt;
              &lt;add input="{HTTPS}" pattern="off" ignoreCase="true" /&gt;
          &lt;/conditions&gt;
      &lt;action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" appendQueryString="false" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>This works just fine.</p>
  
  <p>My client wants me to now redirect a whole load of other non HTTPs .com domains to this HTTPs .co.uk domain.</p>
  
  <p>I found a redirect script:</p>
  
  <pre><code>&lt;rule name="Redirect to www.MYDOMAIN.co.uk" patternSyntax="ECMAScript" stopProcessing="true"&gt;
      &lt;match url=".*" /&gt;
          &lt;conditions logicalGrouping="MatchAny"&gt;
              &lt;add input="{HTTP_HOST}" pattern="^(www.)?MYOTHERDOMAIN1.(com|org)$" /&gt;
              &lt;add input="{HTTP_HOST}" pattern="^(www.)?MYOTHERDOMAIN2.(com|net|org)$" /&gt;
          &lt;/conditions&gt;
      &lt;action type="Redirect" url="http://www.MYDOMAIN.co.uk/{R:0}" /&gt;
  &lt;/rule&gt;
  </code></pre>
  
  <p>For the life of me I cannot seem to combine these script into one script that will pick any of his domains and cleanly point them in the direction of the HTTPs .co.uk domain.</p>
  
  <p>Any ideas would be greatly appreciated as regular expressions are not my strong point.</p>
  
  <p>Kind Regards</p>