0
我目前重定向http_example和http_www.example到https_www.example IIS /服务器2016的重定向效果很好用2个重写规则上。然而,我无法弄清楚如何https://example重定向到https://www.example。HTTPS重定向IIS
感谢您的帮助。由于
我目前重定向http_example和http_www.example到https_www.example IIS /服务器2016的重定向效果很好用2个重写规则上。然而,我无法弄清楚如何https://example重定向到https://www.example。HTTPS重定向IIS
感谢您的帮助。由于
,你甚至可以用一个规则实现它。你的情况的规则应该是:
<rule name="All in one URL" stopProcessing="true">
<match url=".*" />
<conditions logicalGrouping="MatchAny">
<add input="{HTTPS}" pattern="off" />
<add input="{HTTP_HOST}" pattern="^www\." negate="true" />
</conditions>
<action type="Redirect" url="https://www.example.com{URL}" />
</rule>
[IIS重定向非www到www和http到https](可能的重复https://stackoverflow.com/questions/32490426/iis-redirect-non-www-到WWW-和HTTP到HTTPS) –