title: IIS URL rewrite rule(Pattern) doe not recognize {HTTP_HOST} when request is made from HTTPS protocol
body: <p>I have domain E.g.
  'example.com'
  I want to redirect all traffic to '<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>' (as I have certificate that is only valid for 'www.example.com')
  when I type '<a href="http://example.com" rel="nofollow noreferrer">http://example.com</a>' it worked fine and redirect me to '<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>' as expected</p>
  
  <p><strong>Issue:</strong> When I make request with '<a href="https://example.com" rel="nofollow noreferrer">https://example.com</a>' it does not redirected by rule to '<a href="https://www.example.com" rel="nofollow noreferrer">https://www.example.com</a>'. Not sure why its failing with https?</p>
  
  <p><strong>Here is rule detail that i have applied.</strong></p>
  
  <pre><code>&lt;rule name="example.com to https://www.example.com" enabled="true" stopProcessing="true"&gt;
       &lt;match url="(.*)" /&gt;
       &lt;conditions&gt;
            &lt;add input="{HTTP_HOST}" pattern="^example\.com$" /&gt;
       &lt;/conditions&gt;
            &lt;action type="Redirect" url="https://www.example.com/{R:1}" /&gt;
  &lt;/rule&gt;
  </code></pre>