1. <s id="4jtld"></s>
    1. <span id="4jtld"><meter id="4jtld"></meter></span>

        <span id="4jtld"></span>
      1. <s id="4jtld"><noscript id="4jtld"><i id="4jtld"></i></noscript></s>
        中國站
        幫助中心 > 安全 > SSL安全證書 > 證書安裝 > 使用程序強制跳轉到HTTPS

        使用程序強制跳轉到HTTPS

        兼容

        1. <script type="text/javascript">
        2. if (document.location.protocol != "https:") {
        3. location.href = location.href.replace(/^http:/,"https:");
        4. }
        5. script>

        ASP

        1. <%
        2. If Request.ServerVariables("SERVER_PORT")=80 Then
        3. Dim strSecureURL
        4. strSecureURL = "https://"
        5. strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
        6. strSecureURL = strSecureURL & Request.ServerVariables("URL")
        7. Response.Redirect strSecureURL
        8. End If
        9. %>

        PHP

        1. if(!isset($_SERVER['HTTPS'])||!$_SERVER['HTTPS']){
        2. $url ='https://'. $_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI'];
        3. header('Location: '. $url);exit;
        4. }
        欧美午夜理伦三级在线观看,欧美午夜乱伦片,欧美午夜乱色视频在线观看,欧美午夜免费一区二区,欧美午夜片欧美片在线观看