Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Disable azurewebsites.net subdomain

Tags:

web

azure

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?

like image 938
Daniel Lang Avatar asked Oct 24 '12 11:10

Daniel Lang


1 Answers

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.
like image 148
pistache Avatar answered Oct 23 '22 13:10

pistache