Disable azurewebsites.net subdomain

azure, web

Solution

Well I don't think you can change the official azurewebsites.net DNS records, so you have only two solutions :

- Find a way to disable this subdomain in the Azure Websites configuration EDIT: Not possible, from what astaykov said in the comments. thanks to him.

- Make your website automatically redirect (HTTP 301, permanent redirect) the user when he lands on the subdomain.

Problem

We have our company website hosted at Windows Azure Websites and set up an A-Record for our domain. The problem is that one can also reach our site using the mangomint subdomain of http://azurewebsites.net (I don't want to post the full url here because Google shouldn't see this). This is bad in terms of SEO and duplicate content. How can I disable the subdomain in favor of our main domain?

Original source

Related problems