Options -Indexes
RewriteEngine On

# Protect internal folders
RewriteRule ^(config|database|storage)/ - [F,L]

# Friendly routes (optional)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
