<rewrite>
    <rules>
        <rule name="http to https" stopProcessing="true">
            <match url="(.*)" />
            <conditions>
                <add input="{HTTPS}" pattern="^OFF$" />
                <add input="{HTTP_HOST}" pattern="^要排除的域名$" negate="true" />
            </conditions>
            <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
        </rule>
    </rules>
</rewrite>

 

相关文章:

  • 2021-06-01
  • 2022-02-09
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2023-04-01
猜你喜欢
  • 2021-10-19
  • 2022-01-18
  • 2022-12-23
  • 2021-12-24
  • 2022-12-23
相关资源
相似解决方案