• 야비
  • https 접속

    야비 2023.04.18 01:22 14

호스팅 최상위에 아파치 파일 .htaccess에서

 

CAFE24의 경우 

<ifmodule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

</ifmodule>

 

일반 호스팅의 경우

RewriteEngine On

RewriteBase /

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

추가 

 

그리고 XE 폴더 안에도 .htaccess 라는 파일이 있는데 이곳에

RewriteEngine On 아래에

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

이렇게 2줄 추가

 
목록화면 크기 1