Options -Indexes
RewriteEngine On
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
RewriteRule ^api/(?!index\.php)(.*)$ api/index.php [L,QSA]
<FilesMatch "^(config\.php|schema\.sql)$">
  Require all denied
</FilesMatch>
