- Get the virtual IP address associated to your Azure website: from the Azure management portal click on your website, go to the dashboard section and click Manage Domains. You should get something like “The IP address to use when you configure A records: xxx.xxx.xxx.xxx”.
- Go to GoDaddy and set an A record with “Host” to
@and “Points to” set to the IP found at step 1 - Add a CNAME record with “Host” set to
awverifyand “Points to” set to the address of your azure website prefixed withawverify(for exampleawverify.mywebsite.azurewebsites.net) - Add a CNAME record with “Host” set to
wwwand “Points to” set to the address of your azure website (for examplemywebsite.azurewebsites.net) - Save the zone file in GoDaddy
- Go back to windows azure in the “Manage Domains” section of your website and add both
example.comandwww.example.comto the list of domain names.
http://stackoverflow.com/questions/22142384/redirecting-non-www-to-www-in-an-azure-website