分享

写回答

发帖

[提问] 买了个win空间做论坛,申请了SSL,如何关闭http服务?

GoDaddy GoDaddy 590 人阅读 | 1 人回复

发表于 2010-7-7 17:41:05 | 显示全部楼层 |阅读模式

现在是http和https同时可以访问论坛,如何把http关闭掉?只用https

谢谢

回答|共 1 个

add.c

发表于 2010-7-7 19:24:15 | 显示全部楼层

要在程序里设置. 一般没必要的话不要都用https访问

也可以在有需要自动转到https的网页中在</head>前加入以下代码:

<script language="javascript">
<!--
if(location.protocol == "http:")
        location.href=location.href.replace(/^http:/, "https:");
//-->
</script>
RAKSmart
您需要登录后才可以回帖 登录 | 注册

本版积分规则