Azure Website 301 Redirect - Where Do I Put It?

前端 未结 4 516
没有蜡笔的小新
没有蜡笔的小新 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:44

    There's no need to upload web.config file as there is one that you can access through the Azure interface.

    Open the settings pane for your App Service and click App Service Editor (Preview) in the Development Tools section towards the bottom of the left hand menu.

    Click Go to open the Editor in a new tab. You will see the web.config file on the left. Click it to edit in the main pane.

    One word of warning - this editor autosaves as you type! I'm sure we'd all do this anyway but I'd recommend preparing your code in an editor and pasting it in.

    I was able to add a section without having to manually restart the App Service.

提交回复
热议问题