Options -Indexes
RewriteEngine On

# Protect data directory
RewriteRule ^data/ - [F,L]

# Route index.html to PHP app
RewriteRule ^index\.html$ /index.php [L]

# Allow existing files/dirs
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
