도메인에 www를 강제삽입하기
작성자 정보
- 관리자 작성
- 작성일
본문
head안에 추가해 주시면 도메인에 www를 강제로 삽입해줍니다.
<script language="Javascript" type="text/javascript">
<!--
var host = location.host.toLowerCase();
var currentAddress = location.href;
if (host.indexOf("www")== -1)
{
currentAddress = currentAddress.replace("//","//www.");
location.href = currentAddress;
}
//-->
</script>
http 일반 홈페이지 강제 https로 접속하기
<script language="Javascript" type="text/javascript">
<!--
var host = location.host.toLowerCase();
var currentAddress = location.href;
if (host.indexOf("www")== -1)
{
currentAddress = currentAddress.replace("//http","//https.");
location.href = currentAddress;
}
//-->
</script>
관련자료
-
링크
-
이전
-
다음
댓글 0개
등록된 댓글이 없습니다.