We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3564012 commit 2515b4cCopy full SHA for 2515b4c
1 file changed
public/.htaccess
@@ -1,16 +1,18 @@
1
<IfModule mod_rewrite.c>
2
RewriteEngine On
3
4
- # 0) Let real files/dirs pass through
5
- RewriteCond %{REQUEST_FILENAME} -f [OR]
6
- RewriteCond %{REQUEST_FILENAME} -d
7
- RewriteRule ^ - [L]
+
8
9
# 1) If a directory-style path has an index.html, serve it
10
# (works for any depth, with or without a trailing slash)
11
RewriteCond %{REQUEST_FILENAME}/index.html -f
12
RewriteRule ^(.+?)/?$ $1/index.html [L]
13
+# 0) Let real files/dirs pass through
+ RewriteCond %{REQUEST_FILENAME} -f [OR]
+ RewriteCond %{REQUEST_FILENAME} -d
14
+ RewriteRule ^ - [L]
15
16
# 2) Canonicalize: if index.html exists but URL lacks trailing slash, redirect to add it
17
RewriteCond %{REQUEST_FILENAME} !-f
18
0 commit comments