http重定向到https

摘要:
xmlversion=“1.0”encoding=“UTF-8”?&gt?配置>rulename=“Redirecttohttps”stopProcessing=“true”>matchurl=“(.*)”/>addinput=“{HTTPS}”pattern=“^OFF$”/>
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
    <system.webServer>
        <rewrite>
            <rules>
                <rule name="Redirect to https" stopProcessing="true">
                    <match url="(.*)" />
                    <conditions>
            <add input="{HTTPS}" pattern="^OFF$" />
                        <add input="{HTTPS_HOST}" pattern="^(sun.lcedu.net.cn)" negate="true" />
            <add input="{HTTPS_HOST}" pattern="^(sun1.lcedu.net.cn)" negate="true" />
                    </conditions>
                    <action type="Redirect" url="https://{HTTP_HOST}/{R:1}" redirectType="SeeOther" />
                </rule>
            </rules>
        </rewrite>
    </system.webServer>
</configuration>

免责声明:文章转载自《http重定向到https》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇dedeCMS自定义dede标签【技术帖】真正解决反恐精英csOL:StartService 0X204 为防御非法程序driver下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

GCD与莫比乌斯反演的勾当

目录 机房最后一个学懵逼钨丝的人 题目一 链接 式子 注意 代码 题目 链接&&问题 公式 代码 bzoj1101 链接 式子 代码 机房最后一个学懵逼钨丝的人 题目一 链接 题目没找到 求(sum_{1}^{n}sum_{1}^{m}gcd(i,j)) 式子 (sumlimits_{i=1}^{N}suml...

使用Mathjax网页插入公式

本文关于 想在网页里面插入公式,找到了 Mathjax,这里说怎么设置,具体来说是怎么在博客园设置。以及一点点如何使用。 设置方法 需要开通js的权限。 进入 设置。 在页脚Html代码输入: <script type="text/x-mathjax-config"> MathJax.Hub.Config({ displayAlign:...

struts2入门

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />     学习一门新技术,最好是先看到实际的效果,所以接下来的几篇文章里,我们就来个先睹为快,看看Struts2的边边角角到底是怎么使用的,等我们有了一定的作战经验,再来透彻地分析它的运行原理。...

asp.net父窗口、子窗口

一:转向子窗口的几种方法 1.在数据控件中(如:GridView,Repeater) 1<a href="#" onclick="window.open('money.aspx?lowhouseid=<%# DataBinder.Eval(Container.DataItem, "lowhouseid") %>&difficu...

代码重构封装参数

代码中如果有范围参数: public void GetInfo(datetime beginTime,datetime endTime){ if(beginTime>'2012-01-01'&& endTime<'2012-12-30'){     //处理代码 } else{   //处理代码 } } 重构方式:封装时间范...

mybatis 遇到空串无法判断

sql 语句中对传入的关键字进行判断,如果是空或者空串则不进入条件 <if test="query.keyword !=null and query.keyword != ''"> and (t.id like concat('%',#{query.keyword},'%') or...