<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>
中國站
幫助中心 > 安全 > SSL安全證書(shū) > 證書(shū)安裝 > 使用程序強制跳轉到HTTPS

使用程序強制跳轉到HTTPS

兼容

  1. <!-- 如果檢測到是http頁(yè)面,則自動(dòng)跳轉到對應的https頁(yè)面 -->
  2. <script type="text/javascript">
  3. if (document.location.protocol != "https:") {
  4. location.href = location.href.replace(/^http:/,"https:");
  5. }
  6. </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. }
国产精品香港三级|日韩精品无码免费专区网站|熟女一区二区三区|一本伊大人香蕉久久网|jzzijzzij亚洲乱熟无码
<button id="qvlbh"><button id="qvlbh"></button></button>
<xmp id="qvlbh"><xmp id="qvlbh"><xmp id="qvlbh"><address id="qvlbh"><output id="qvlbh"></output></address>
<xmp id="qvlbh"><legend id="qvlbh"></legend>
<xmp id="qvlbh"> <address id="qvlbh"><output id="qvlbh"></output></address>
<address id="qvlbh"><button id="qvlbh"></button></address>
<button id="qvlbh"><samp id="qvlbh"></samp></button>
<address id="qvlbh"><button id="qvlbh"></button></address><address id="qvlbh"></address>
<address id="qvlbh"><legend id="qvlbh"></legend></address>
<samp id="qvlbh"><xmp id="qvlbh"><legend id="qvlbh"></legend>