Add : 웹 버그 제거
This commit is contained in:
parent
31389a2a02
commit
9ba01bd21d
16
.htaccess
16
.htaccess
@ -1,15 +1,15 @@
|
|||||||
|
Options +FollowSymLinks
|
||||||
RewriteEngine On
|
RewriteEngine On
|
||||||
|
|
||||||
# Redirect .html URLs to clean URLs (except index.html)
|
# Internal rewrite for clean URLs to .html files
|
||||||
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
|
|
||||||
RewriteCond %1 !^index$ [NC]
|
|
||||||
RewriteRule ^ /%1? [NC,L,R=301]
|
|
||||||
|
|
||||||
# Add .html extension to clean URLs
|
|
||||||
RewriteCond %{REQUEST_FILENAME} !-f
|
RewriteCond %{REQUEST_FILENAME} !-f
|
||||||
RewriteCond %{REQUEST_FILENAME} !-d
|
RewriteCond %{REQUEST_FILENAME} !-d
|
||||||
RewriteCond %{REQUEST_FILENAME} !^.*\.(css|js|png|jpg|jpeg|gif|webp|svg|ico|pdf)$ [NC]
|
RewriteRule ^about$ about.html [L]
|
||||||
RewriteRule ^([^\.]+)/?$ $1.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
|
# Handle 404 errors
|
||||||
ErrorDocument 404 /index.html
|
ErrorDocument 404 /index.html
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user