모두 SSL 항상사용으로 적용헀지만

 

ex) naver.com 이라고 주소창에 접속하면

 

naver.com 이라고 그냥 접속되는걸 https://naver.com 이거로 어떻게 바꾸나요?

  • ?
    1. HSTS ( HTTP_Strict_Transport_Security ) 를 설정하세요!
    2. HTTP 로 접속시 HTTPS 로 강제 리디렉션 시키세요.
  • ? ?
    htaccess 파일 만드는건가요?
  • ? profile
    RewriteEngine On # 이미 있는 경우 제외
    RewriteCond %{HTTPS} !on
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    클라우드플레어 사용시에는 아래의 규칙도 추가해야 합니다.

    RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
    RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • ? ?
    아파치라면 그렇습니다 :)
    기진곰님 답변 참고하세요