/*直接在你的模板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>
http强制跳转https
最新推荐文章于 2024-07-23 22:18:20 发布