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