문서의 이전 판입니다!
http 로 들어올 경우 https 로 강제 전환(force redirect)
아파치 모듈중 mod_rewrite 를 사용하면 가능하다.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R,L] </IfModule>
http 로 들어올 경우 https 로 강제 전환(force redirect)
Apache HTTPS/HTTP 리다이렉트(Redirect/Rewrite) 하는 방법