title: Domain name without "www" results in 404 or "Under Construction" page in IIS 7.5
body: <p>I have two websites hosted in IIS 7.5 that use SSL and are bound to two different internal IP addresses. When I navigate to either of them without "www" (e.g. <a href="http://example.com" rel="nofollow">http://example.com</a>), then I get a 404 error for Site A and an "Under Construction" page for Site B. When I go to the URL without "www" using a browser <em>outside</em> of the server, Site B shows an IIS 7 start page.</p>
  
  <p>I have tried multiple configurations of DNS records and IIS rewrite rules, and still can't sort it out. I can ping both domain names (originally I could not ping a site without "www" and would get a DNS error). Now when I view <code>nslookup</code>, I can see that both www and non-www have the same IP address.</p>
  
  <p>It seems like requests to the non-www domain name are getting to IIS since it returns a 404 page or IIS 7 start / construction page. <strong>How do I properly redirect non-www requests to www?</strong> The canonical domain name rule(s) in IIS did not work.</p>