title: iis url redirect http to non www https
body: <p>i need to redirect from</p>
  
  <p><a href="http://www.domain.de" rel="noreferrer">www.domain.de</a> to <a href="https://domain.de" rel="noreferrer">https://domain.de</a>
  -works</p>
  
  <p><a href="http://www.domain.de" rel="noreferrer">http://www.domain.de</a> to <a href="https://domain.de" rel="noreferrer">https://domain.de</a>
  -works</p>
  
  <p><a href="http://domain.de" rel="noreferrer">http://domain.de</a> to <a href="https://domain.de" rel="noreferrer">https://domain.de</a>
  -does not work</p>
  
  <pre><code>rewrite&gt;
    &lt;rules&gt;
      &lt;rule name="Imported Rule 1" stopProcessing="true"&gt;
        &lt;match url="^(.*)$" ignoreCase="false" /&gt;
        &lt;conditions logicalGrouping="MatchAll"&gt;
          &lt;add input="{HTTP_HOST}" pattern="^www\.(.+)$" /&gt;
        &lt;/conditions&gt;
        &lt;action type="Redirect" url="https://{C:1}/{R:1}" redirectType="Permanent" /&gt;
      &lt;/rule&gt;
    &lt;/rules&gt;
  &lt;/rewrite&gt;
  </code></pre>