验证码: 看不清楚,换一张 查询 注册会员,免验证

使用程序强制跳转到HTTPS

兼容:

<!-- 如果检测到是http页面,则自动跳转到对应的https页面 -->
<script type="text/javascript">
if (document.location.protocol != "https:") { 
        location.href = location.href.replace(/^http:/,"https:");
}
</script>



ASP:

<%
If Request.ServerVariables("SERVER_PORT")=80 Then
Dim strSecureURL
strSecureURL = "https://"
strSecureURL = strSecureURL & Request.ServerVariables("SERVER_NAME")
strSecureURL = strSecureURL & Request.ServerVariables("URL")
Response.Redirect strSecureURL
End If
%>

 

PHP:

if(!isset($_SERVER['HTTPS'])||!$_SERVER['HTTPS']){
$url ='https://'. $_SERVER['HTTP_HOST']. $_SERVER['REQUEST_URI'];
header('Location: '. $url);exit;
}


在线客服
公众号
小程序
客服热线

在线沟通

服务时间:{{ basic.service_time?basic.service_time:'8:30-22:00' }}

微信关注公众号
豚客企服小程序 豚客企服小程序

{{ basic.service_hotline }}

7*24小时客户服务热线