본문 바로가기
Web Development/jQuery&javascript

[Javascript]http->https

by 피치피치어피치 2017. 10. 31.
반응형
    
<script type = "text/javascript">
   if(document.location.protocol == 'http:'){
      document.location.href = document.location.href.replace('http:','https:');
   }
</script>
}
반응형