https 접속 http로 변경하기 > JS

본문 바로가기




WEBDEV


사이트 내 전체검색


https 접속 http로 변경하기

페이지 정보

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

본문


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


var host = location.host.toLowerCase();
 var currentAddress = location.href;
 if (currentAddress.indexOf("ttps://")==1 )
 {


 
  currentAddress = currentAddress.replace("https://","http://");
 location.href = currentAddress;
 }


</script>


댓글목록

등록된 댓글이 없습니다.



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