URL with www causing 404 in IIS
<p>I have a site at domain.com.  I've recently installed an SSL certificate so I can use HTTPS.  </p>

<p>In IIS, I created bindings for domain.com and www.domain.com for http and https.  Then I have a URL rewrite rule in my web.config that adjusts every url to point to <a href="https://domain.com" rel="nofollow">https://domain.com</a></p>

<p>My issue is that when I go to <a href="http://domain.com" rel="nofollow">http://domain.com</a> or <a href="https://domain.com" rel="nofollow">https://domain.com</a> the site works, but <a href="http://wwww.domain.com" rel="nofollow">http://wwww.domain.com</a> and <a href="https://www.domain.com" rel="nofollow">https://www.domain.com</a> do not.  Is this an issue with my rewrite rules or my binding?</p>

<p>Here is my web.config for reference:</p>

<pre><code>&lt;configuration&gt;
&lt;system.webServer&gt;
    &lt;rewrite&gt;
        &lt;rules&gt;
&lt;rule name="Redirect to HTTPS" stopProcessing="true"&gt;
  &lt;match url="(.*)" /&gt;
  &lt;conditions&gt;
    &lt;add input="{HTTPS}" pattern="^OFF$" /&gt;
  &lt;/conditions&gt;
  &lt;action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="Found" /&gt;
&lt;/rule&gt; 
            &lt;rule name="Imported Rule 1"&gt;
                &lt;match url="^(register)$" /&gt;
                &lt;conditions logicalGrouping="MatchAll"&gt;
                    &lt;add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /&gt;
                &lt;/conditions&gt;
                &lt;action type="Redirect" url="https://domain.com/register.php" redirectType="Found" /&gt;
            &lt;/rule&gt;
        &lt;/rules&gt;
    &lt;/rewrite&gt;
&lt;/system.webServer&gt;
</code></pre>

<p></p>