首页域名资讯 正文

iis6所有跳转代码 – HTTPS SSL 教程

2025-01-19 1 0条评论

<script type=”text/javascript”>

var url=window.location.href;

url=url.replace(“http:”,”https:”)

window.location.replace(url);</script>

 

<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>

 

 

<script type=”text/javascript”>var url = window.location.href;                if (url.indexOf(“https”) < 0) {

url = url.replace(“http:”, “https:”);                    window.location.replace(url);

}</script>

 

<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>

 

<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://edns.com/ask/post/149837.html 发布于 2025-01-19
文章转载或复制请以超链接形式并注明出处。