HTTPS 跳转相关问题
作者:朱尚 / 日期:2019-08-09 / 分类:Asp.Net / 浏览:1685
<rewrite>
        //http 跳转到 https
      <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>
        //下面这个是不带www跳转到带www
        <rule name="www" stopProcessing="true">
          <match url=".*" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^zhjx66\.com$" />
          </conditions>
          <action type="Redirect" url="https://www.zhjx66.com/{R:0}" />
        </rule>
      </rules>
    </rewrite>


上一篇:windows server 2012下安装sql2016的问题
下一篇:商城安装配置
本文标签: https ssl跳转
本文链接:http://www.banzhuan.net/detail/342