RewriteEngine On

# Block direct access to data and repos directories
RewriteRule ^data(/.*)?$  - [F,L]
RewriteRule ^repos(/.*)?$ - [F,L]

# Send everything else through index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]

# Disable directory listing
Options -Indexes
