Azure Web App Service - 如何强制非 WWW 访问 WWW?

Azure Web App Service - How to force non WWW to go to WWW?

我在标准应用服务上有一个 Azure Web 应用。我可以通过 http://www.websitename.com but unable to access the website via http://websitename.com.

访问该站点

如何获取非www的网址。去万维网。版本?

在域的 DNS 配置中,我的 A 名称记录指向 Azure 中 Web 应用程序的 IP 地址,而 CName 记录指向 Azurewebsites.net 域。

在 Azure 门户中,您需要添加 www.websitename.comwebsitename.com 作为 Web 应用程序的主机名,以便 Azure 知道向其发送流量。