web加https代码

<rewrite>
        <rules>
          <rule name="HTTP to HTTPS redirect" stopProcessing="true">
            <match url="(.*)" />
            <conditions>
              <add input="{HTTPS}" pattern="off" ignoreCase="true" />
            </conditions>
            <action type="Redirect" redirectType="Found" url="https://{HTTP_HOST}/{R:1}" />
          </rule>
        </rules>
      </rewrite>
 

  

猜你喜欢

转载自www.cnblogs.com/jingcong/p/12510305.html
今日推荐