I try to redirect my Azure web app from www.website.com to website.com and I cannot find a way. I already check many solutions online and follow the steps, like here: Redirect from non www to www, do I need two app services in azure? but no luck.
In go daddy I have:
Type Name Value
A @ myIp
TXT @ website.azurewebsites.net
CNAME www website.azurewebsites.net
and in Azure Portal I set:
-> custom domains
website.azurewebsites.net (given by default from azure)
website.com
www.website.com
-> TSL/SSL Settings
website.com
www.website.com
but still, when I go to www.website.com, I see my website but I don't get forward to website.com
Any idea what else could I do/what am I missing?
I got in contact with GoDaddy service and they told me that under the hood, GoDaddy use Forward service to deal with www to non-www. Basically, GoDaddy forward service, has its own server which has no certificate installed. That's my the warning. SSL certificate are per domain, per server.
Solution: I must redirect at server level, not DNS level if I want the www.mywebsite.com to work properly while rediretcing to non-www.