https如何配置,web.config配置出现框架结构混乱现象。

  • 时间:
  • 浏览:14362
  • 来源:MIP建站系统交流平台

怎么把网站的web.config和https的web.config合在一个web.config里面呢?

https配置里面web.config如下

<configuration>
 <system.webServer>
        <rewrite>
            <rules>
               <rule name="301" stopProcessing="true">
                    <match url="^(.*)$" ignoreCase="false" />
                    <conditions logicalGrouping="MatchAll">                       
                         <add input="{HTTP_FROM_HTTPS}" pattern="^on$" negate="true" />  
                  </conditions>
                    <action type="Redirect" url="https://www.xxxx.com.cn/{R:1}" redirectType="Permanent" />
               </rule>
            </rules>
        </rewrite>
    </system.webServer> 
</configuration>

0个回答

您尚未登录,暂无法回复!请先 登录/注册