62,074
社区成员
发帖
与我相关
我的任务
分享
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)" ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{HTTPS}" negate="true" pattern="^on$" ignoreCase="false" />
</conditions>
<action type="Redirect" url="https://{SERVER_NAME}/{R:1}" redirectType="Found" />
</rule>
</rules>
</rewrite>
^http://(www\.)?(.*)
^http://www\.?(.*)
正则应该是这样