Files
egbim_homepage/.htaccess
T
2026-07-27 17:23:52 +09:00

31 lines
1.0 KiB
ApacheConf

<IfModule mod_rewrite.c>
RewriteEngine On
# auth route compatibility
RewriteRule ^auth/baron_login/?$ /auth/baron_login.php [L,QSA]
RewriteRule ^auth/callback/?$ /auth/callback.php [L,QSA]
RewriteRule ^auth/debug_claims/?$ /auth/debug_claims.php [L,QSA]
# local docker/localhost bypass
RewriteCond %{ENV:APP_ENV} =local [OR]
RewriteCond %{HTTP_HOST} ^(localhost|127\.0\.0\.1)(:[0-9]+)?$ [NC]
RewriteCond %{REQUEST_URI} ^/?$
RewriteRule ^$ /egbim/index.php [R=302,L]
# eg-bim.co.kr -> eg-bim.com
RewriteCond %{ENV:APP_ENV} !=local
RewriteCond %{HTTP_HOST} ^(www\.)?eg-bim\.co\.kr$ [NC]
RewriteRule ^ https://eg-bim.com%{REQUEST_URI} [R=301,L]
# m.eg-bim.co.kr -> /egbim/
RewriteCond %{ENV:APP_ENV} !=local
RewriteCond %{HTTP_HOST} ^m\.eg-bim\.co\.kr$ [NC]
RewriteRule ^.*$ https://eg-bim.com/egbim/ [R=301,L]
# eg-bim.com 루트 -> /egbim/index.php
RewriteCond %{HTTP_HOST} ^(www\.)?(eg-bim\.co\.kr|eg-bim\.com)$ [NC]
RewriteCond %{REQUEST_URI} ^/?$
RewriteRule ^$ /egbim/index.php [R=302,L]
</IfModule>