사이트 내 전체검색
리눅스,서버관리,Mysql,Synology
0 (/P)
[서버관리] How to redirect HTTP to HTTPS Using .htaccess
하우코드
https://tto.kr/adm_server/1159 URL이 복사되었습니다.

본문

 <ifmodule mod_rewrite.c>


RewriteEngine on

RewriteBase /


RewriteCond %{HTTP_HOST} ^epp\.kr [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://epp.kr/$1 [R,L]


RewriteCond %{HTTP_HOST} epp.kr$ [NC]

RewriteCond %{REQUEST_URI} !^/epp

RewriteRule ^(.*)$ /epp/$1 [L]


RewriteCond %{HTTP_HOST} ^leejaemyoung\.com$ [NC]

RewriteCond %{SERVER_PORT} 80

RewriteRule ^(.*)$ https://leejaemyoung.com/$1 [R,L]


RewriteCond %{HTTP_HOST} ^leejaemyoung\.com$ [NC]

RewriteCond %{REQUEST_URI} !^/leejaemyoung

RewriteRule ^(.*)$ /leejaemyoung/$1 [L]


</ifmodule>

댓글목록

등록된 댓글이 없습니다.

리눅스,서버관리,Mysql,Synology
1,140 (1/46P)

Search

Copyright © 하우코드 44.192.247.184