Azure Website 301 Redirect - Where Do I Put It?

前端 未结 4 521
没有蜡笔的小新
没有蜡笔的小新 2020-12-12 18:08

I want to direct some of my other domains to my primary domain which is hosted at a Windows Azure website.

(For the sake of those that find working with CNAME\'s

4条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-12 18:53

    I've taken a simpler approach and just added the extra required domains to the Azure App Service via the Custom Domains menu - per the screenshot below. No need to touch the main websites web.config file at all. No need for any explicit 301 redirect. In Custom Domains page, just assign the domains, add the SSL bindings by uploading your HTTPS certificates - hit the site!

提交回复
热议问题