我有一个Azure Web应用程序,运行时将SSL绑定到其主要的非www域。
因此,这意味着https://example.com是我的主要登陆点,并且我已添加了SSL证书。
Azure文档建议我在DNS上也有一个CNAME记录,以供www域映射到我的网站。
www和非www网址现在都已加载,并带有“不安全”标签。
现在无论我如何处理web.config文件中的重写规则,它都将无法使用。
<rule name="Force HTTPS" enabled="true" stopProcessing="true">
<match url="(.*)" ignoreCase="false" />
<conditions>
<add input="{HTTPS}" pattern="off" />
<add input="{WARMUP_REQUEST}" pattern="1" negate="true" />
</conditions>
<action type="Redirect" url="https://iwantfishing.com/{R:1}"
appendQueryString="true" redirectType="Permanent" />
</rule>
每次查看IIS重写都会花费我几个小时,所以我希望有人比我更聪明