From 0bec74a03da697d095ed485831fd8dbbb6c2ec71 Mon Sep 17 00:00:00 2001 From: KINDNICK <68893236+KINDNICK@users.noreply.github.com> Date: Thu, 18 Sep 2025 21:29:40 +0900 Subject: [PATCH] =?UTF-8?q?Add=20:=20=EC=9B=B9=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .htaccess | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.htaccess b/.htaccess index 7aa2697..b6160cc 100644 --- a/.htaccess +++ b/.htaccess @@ -1,5 +1,6 @@ -Options +FollowSymLinks + RewriteEngine On +RewriteBase / # 한글 URL 인코딩 설정 @@ -7,15 +8,19 @@ RewriteEngine On ClientEncoding EUC-KR -# Internal rewrite for clean URLs to .html files +# Static files 제외 +RewriteCond $1 !^(css|js|images|uploads|favicon\.ico|robots\.txt) +# 실제 파일이나 디렉토리가 아닌 경우만 RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d +# Clean URL 규칙 RewriteRule ^about$ about.html [L] RewriteRule ^services$ services.html [L] RewriteRule ^portfolio$ portfolio.html [L] RewriteRule ^gallery$ gallery.html [L] RewriteRule ^contact$ contact.html [L] RewriteRule ^qna$ qna.html [L] + # Handle 404 errors ErrorDocument 404 /index.html