Options -Indexes
RewriteEngine On

# Keep real files/folders accessible
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [L]

# Basic protection for config and private folders
<Files "config.php">
  Require all denied
</Files>
