jQuery2017. 12. 20. 03:05
스키마(http, https)에 따른 상대적인 주소 처리


이미지의 경우는 다음과 같이 처리

<img src="//sub.l2j.co.kr/image/ssl.jpg" />




프로토콜을 확인후 리로딩

<script type="text/javascript">

if (window.location.protocol != "https:")

//window.location.href = "https:" + window.location.href.substring(window.location.protocol.length);

location.href = location.href.replace(/^http:/, 'https:')

</script>



엘리펀 웹사이트(https://elefuns100.cafe24.com)에 적용됨 : inc/header.php


출처 : http://l2j.co.kr/2783 [L2J with DuraBoys]

Posted by cpu21