domain without www not working, but with www is working on Azure

Vikram picture Vikram · Oct 15, 2013 · Viewed 17.3k times · Source

we have a site that we recently moved to Azure, did the DNS mapping for www.sitename.com and also for sitename.com however when I access the site without any www prefix, it throws up an error. when I provide www. prefix it works fine.

what could I be missing ?

Answer

Vikram picture Vikram · Oct 16, 2013

Within Azure go to Domain Mappings and make an entry for sitename.com in addition to www.sitename.com ! that worked for me.. I remember trying to do that earlier, but Azure did not allow the entry without a www. originally (about a month back) but now it accepted and started working immediately.