Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net 绕过IP的URL重写规则_Asp.net_Iis_Url Rewriting_Url Rewrite Module - Fatal编程技术网

Asp.net 绕过IP的URL重写规则

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

我在IIS10中有URL重写规则,以这种方式将所有http请求强制转换为https,它工作得非常完美

<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建议修复的完整网络配置