I have created an Azure CDN, an endpoint and working fine.
Created a CNAME www.mydomain.com
to myazurecdn.azureedge.net
Created another CNAME mydomain.com
to www.mydomain.com
In Azure Endpoint, Custom Domain, I updated www.mydomain.com
and it got propagated.
Now, when I navigate to www.mydomain.com
, everything works fine but when I navigate to mydomain.com
i get below response.
Our services aren't available right now
We're working to restore all services as soon as possible. Please check back soon.
Note: As Azure endpoint accepts multiple custom domain, I could add both www.mydomain.com
and mydomain.com
but it is not correct way, as I have many <a>
tags with www.mydomain.com/link
.
What to be done now to instruct system to use same route for mydomain.com
and www.mydomain.com
?
Is domain redirect from domain.com
to www.mydomain.com
only option?