Files
edu/.htaccess
T

19 lines
597 B
ApacheConf

<IfModule mod_rewrite.c>
RewriteEngine On
# 1. 모든 접속을 HTTPS로 강제 리다이렉트
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# 2. 루트(/) 접속 시 baron/index.html로 이동
# RewriteCond %{REQUEST_URI} ^/$
# RewriteRule ^$ /baron/index.html [L,R=301]
# edu.baroncs.co.kr 접속 시 skin/index.php를 보여줌
RewriteCond %{HTTP_HOST} ^edu\.baroncs\.co\.kr$
RewriteRule ^$ /skin/index.php [L]
# 3. /baron 요청은 그대로 유지
RewriteCond %{REQUEST_URI} ^/baron
RewriteRule ^ - [L]
</IfModule>