我正在尝试将example.com重定向到www.example.com
我发现所有示例(here和here)都可以使用HTTP://,但可以使用HTTP S :不:/ /
http s ://example.com不重定向
http://example.com确实会重定向。
<rule name="Add WWW prefix" >
<match url="(.*)" ignoreCase="true" />
<conditions >
<add input="{HTTP_HOST}" pattern="^bungalowsoftware.com" />
</conditions>
<action type="Redirect" url="https://www.bungalowsoftware.com/{R:1}"
redirectType="Permanent" />