RewriteEngine On
# If the requested file or directory exists, serve it as-is
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Otherwise, send all requests to index.html
RewriteRule ^ index.html [QSA,L]