http 접속 https 로 변경 > JS

본문 바로가기




WEBDEV


사이트 내 전체검색


http 접속 https 로 변경

페이지 정보

작성자 최고관리자 댓글 0건 조회 3,193회 작성일 18-12-14 17:34

본문


<script  language="JavaScript" type="text/javascript">


var host = location.host.toLowerCase();
 var currentAddress = location.href;
 if (currentAddress.indexOf("ttps://") == -1)
 {
  currentAddress = currentAddress.replace("http://","https://");
  location.href = currentAddress;
 }


</script>


댓글목록

등록된 댓글이 없습니다.



개인정보처리방침
서비스이용약관
모바일버전
그누보드5
Copyright © 소유하신 도메인. All rights reserved.