Options -MultiViews
RewriteEngine On

# Do not rewrite requests going to api/
RewriteRule ^api(/.*)?$ - [L]

# Allow direct access to existing files (assets, favicon, etc.)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# All other routes → React index.html (SPA fallback)
RewriteRule ^ index.html [L]
