RewriteEngine On
DirectorySlash Off

# if file exsists, send it
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME}/index.html -f
RewriteRule ^ %{REQUEST_FILENAME}/index.html [L]

# redirect all 404 to index.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule . /index.html [L,C]
