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>
正文完
评论区