# 1) Disable directory listings
Options -Indexes

# 2) Make sure index.html is the default
DirectoryIndex index.html

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /

  # 3) If the request is for an existing file or directory, serve it
  RewriteCond %{REQUEST_FILENAME} -f [OR]
  RewriteCond %{REQUEST_FILENAME} -d 
  RewriteRule ^ - [L]

  # 4) Otherwise fall back to index.html
  RewriteRule . index.html [L]
</IfModule>