兼容:
<!-- 如果检测到是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 呼百应 1.13.3 © 0572-2050156