兼容:
<!-- 如果检测到是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; }
国家级高新技术企业、国家工商总局商标局备案代理机构、中国知识产权发展联盟成员单位、华北知识产权运营中心特色分中心、国家科技型中小企业、天津知识产权运营联盟成员单位。
Powered by zuangua IPR 1.10.0 Licensed © 钻瓜科技河北有限公司AND钻瓜科技(天津)有限公司AND天津钻瓜知识产权服务有限公司,投诉邮箱:zhoukun@zuangua.cn