# The panel needs no directory listing, and includes/storage are never served.
Options -Indexes
<FilesMatch "\.(log|sqlite|sql|key)$">
  Require all denied
</FilesMatch>

# Pretty addresses: anything that is not a real file or folder goes to the router.
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^ router.php [L]
  RewriteCond %{HTTP:Authorization} .
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>
