RewriteEngine On

# Prevent rewriting for existing files and directories
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Rewrite all domain path segments to index.html
RewriteRule ^([^/]+)$ index.html [L]
