<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # Let Apache serve Vite assets and other real files directly.
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^ - [L]

  # BrowserRouter needs the SPA entry point on a direct visit or refresh.
  RewriteRule ^ index.html [L]
</IfModule>

DirectoryIndex index.html
