0
這可能被問了很多次,但我有一個購買域名(通過1 & 1如果有的話)foobar.com。我已經在Azure和域中設置了自定義域來轉發給我建立的天藍應用程序服務,並且當有人訪問foobar.com時,這種工作正常。我所看到的是如果有人去www.foobar.com。他們得到一個沒有找到的醜陋的網絡應用程序(一個Azure屏幕)。我需要設置什麼才能使此重定向工作。我需要在某些方面更新域名/天藍色嗎?我在我的Web.config中有以下規則301在Azure中重定向
<rules>
<rule name="Redirect old-domain to new-domain" stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^www.foobar.com$" />
</conditions>
<action type="Redirect" url="http://foobar.com/{R:0}" redirectType="Permanent" />
</rule>
</rules>
以下步驟做了訣竅! –