Asp.net 绕过IP的URL重写规则
我在IIS10中有URL重写规则,以这种方式将所有http请求强制转换为https,它工作得非常完美Asp.net 绕过IP的URL重写规则,asp.net,iis,url-rewriting,url-rewrite-module,Asp.net,Iis,Url Rewriting,Url Rewrite Module,我在IIS10中有URL重写规则,以这种方式将所有http请求强制转换为https,它工作得非常完美 <rewrite> <rules> <rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true"> <match url="(.*)" /> <conditions logicalGrou
<rewrite>
<rules>
<rule name="HTTP/S to HTTPS Redirect" enabled="true" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAny">
<add input="{SERVER_PORT_SECURE}" pattern="^0$" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
下面是@Kul Tgin建议修复的完整网络配置