1 . 아파치 VirtualHost 설정 RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} VirtualHost 에 추가한다. RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} 2 . javascript if (window.location.protocol == 'http:') { window.location.href = window.location.href.replace('http:', 'https:'); }