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>
 

  

posted @ 2020-03-17 14:01  .阿聪  阅读(153)  评论(0)    收藏  举报