Azure Websites Redirecting WWW to non-WWW

  1. 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”.
  2. Go to GoDaddy and set an A record with “Host” to @ and “Points to” set to the IP found at step 1
  3. Add a CNAME record with “Host” set to awverify and “Points to” set to the address of your azure website prefixed with awverify (for example awverify.mywebsite.azurewebsites.net)
  4. Add a CNAME record with “Host” set to www and “Points to” set to the address of your azure website (for example mywebsite.azurewebsites.net)
  5. Save the zone file in GoDaddy
  6. Go back to windows azure in the “Manage Domains” section of your website and add both example.com and www.example.com to the list of domain names.

http://stackoverflow.com/questions/22142384/redirecting-non-www-to-www-in-an-azure-website

Chandra Oemaryadi has written 244 articles

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>