# CodeStudio — the app's code, settings and data are not for the browser.
# (On nginx, deny the same paths in the server block: see README.txt.)
Options -Indexes
DirectoryIndex index.php

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^(core|app|data)(/|$) - [F,L]
  RewriteRule ^config\.php$ - [F,L]
  # Some hosts drop the Authorization header the data page sends.
  RewriteCond %{HTTP:Authorization} .
  RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

<FilesMatch "^(config\.php|.*\.sqlite)$">
  <IfModule mod_authz_core.c>
    Require all denied
  </IfModule>
  <IfModule !mod_authz_core.c>
    Deny from all
  </IfModule>
</FilesMatch>
