Initial commit: 교육 프로젝트 배포
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user