http强制跳转https


/*直接在你的模板footer或header文件在<head>标签中加入里插入使用 js ,使其强制 http 到 https。*/
<script type="text/javascript">
   var targetProtocol = "https:";
   if (window.location.protocol != targetProtocol)
   window.location.href = targetProtocol +
   window.location.href.substring(window.location.protocol.length);
</script>
正文完

评论区
个人资料

  • 博主木木
  • 运营天数3291
  • 文章阅读数 40672
  • 评论数量1
  • 文章数量99
搜索

倒计时