Skip to content

Commit 16218b2

Browse files
committed
Add .htaccess with SPA fallback for site
1 parent 2bd3b35 commit 16218b2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

site/static/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
RewriteEngine On
2+
3+
# SPA fallback: serve index.html for client-side routes
4+
RewriteCond %{REQUEST_FILENAME} !-f
5+
RewriteCond %{REQUEST_FILENAME} !-d
6+
RewriteRule ^ /index.html [L]

0 commit comments

Comments
 (0)