1RewriteEngine On
2# If an existing asset or directory is requested go to it as it is
3RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
4RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
5RewriteRule ^ - [L]
6
7# If the requested resource doesn't exist, use index.html
8RewriteRule ^ /index.html