Reputation: 5522
Having answered a few questions on StackOverflow, I'm excited to be asking my first one!
We've just discovered that Google is not only indexing our website at www., but also URLs from the website at mx1., 2., wwww., ww., nc. and httpwww. Clearly this isn't good news, as Google will think these are duplicate pages.
People suggest that this means that our website is allowing wildcard subdomains, but from what I understand IIS doesn't allow wildcard subdomains. We're using Windows Server 2003, which I think means IIS 6. We host our own website.
Does anyone know why this has happened, and how to stop it happening in the future? I understand that Bing isn't indexing these subdomains. Thanks in advance.
Upvotes: 1
Views: 256
Reputation: 171206
IIS does allow wildcard domains.
Add some code in your Application_BeginRequest where you analyze the Request.Host and redirect appropriately. And remove wildcard DNS. Just leave"www" and "".
Upvotes: 1