可以在有需要自动转到https的网页中在前加入以下代码:
<script language="javascript">
<!--
if(location.protocol == "http:")
location.href=location.href.replace(/^http:/, "https:");
//-->
</script>
可以在有需要自动转到https的网页中在前加入以下代码:
<script language="javascript">
<!--
if(location.protocol == "http:")
location.href=location.href.replace(/^http:/, "https:");
//-->
</script>