广杰博客

  • 首页
  • IT资讯
  • IT运维
  1. 首页
  2. IT运维
  3. 正文

http自动跳转https js代码

06/03/2019 1515点热度 1人点赞 0条评论
<script type="text/javascript">
var url = window.location.href;
if (url.indexOf("https") < 0) {
url = url.replace("http:", "https:");
window.location.replace(url);
}
</script>

标签: https js代码
最后更新:06/03/2019

guangjie

这个人很懒,什么都没留下

点赞
< 上一篇
下一篇 >
最新 热点 随机
最新 热点 随机
Red Hat Enterprise Linux 9 发布,大量组件升级 windows10 家庭版添加hyper-v虚拟机组件 Red Hat Enterprise Linux 8.5 GA 发布 Rocky Linux 8.4 GA正式版发布下载 Rocky Linux 8.3 首个候选版本发布 CentOS 8.3 (2011) ISO镜像下载发布 CentOS Linux 落幕 CentOS Stream 上位 CentOS Linux 7.9 (2009) iso镜像下载 Windows 10 2020年10月更新ISO下载 ubuntu ssh通过密钥登陆服务器
Rocky Linux 8.3 首个候选版本发布 RHEL5正式发布 微软计划10月23日在上海举行Windows8发布会 windows server 2012 官方中文学习技术免费电子书 强制删除一些非正常的文件或文件夹命令 解决An error occurred on the server when processing Red Hat Enterprise Linux 7.7 发布镜像下载 rpm命令使用 PHP4 end of life Windows8首则电视广告
标签聚合
linux android springboot Windows Server 2012 nginx php_curl Hyper-V redhat
友情链接
  • linux运维
  • 郑州SEO

COPYRIGHT © 2021 gjie.cn. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备07002435号-8