[리눅스] .htaccess 를 이용해서 https 이동하기

- 08-31
- 45,420 회
- 0 건
http:// 로 접속하면 자동으로 https:// 로 이동합니다
.htaccess 파일에 아래 코드를 입력하시면 됩니다.
[code] <ifmodule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] </ifmodule> [/code]
로그인 후 댓글내용을 입력해주세요