Skip to content

Commit bafd0ef

Browse files
committed
feat(htaccess): refine rule for blocking directory browsing of i18n assets
1 parent 5fc384a commit bafd0ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

public/.htaccess

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ RewriteRule ^ https://cris-dev.com%{REQUEST_URI} [L,R=301]
66

77
# Block directory browsing of Nuxt internals but allow hashed assets
88
RewriteRule ^_nuxt/?$ - [F,L]
9-
RewriteRule ^_i18n(?:/.*)?$ - [F,L]
9+
RewriteRule ^_i18n/?$ - [F,L]
1010

1111
# Serve existing files and directories normally
1212
RewriteCond %{REQUEST_FILENAME} -f [OR]

0 commit comments

Comments
 (0)