Options -Indexes
DirectoryIndex index.php

RewriteEngine On
RewriteRule ^inc(/|$) - [F,L]
RewriteRule ^admin$ admin/index.php [L]
RewriteRule ^admin\.html$ admin/ [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ api.php [QSA,L]

<FilesMatch "^(config\.php|config\.example\.php|schema\.mysql\.sql)$">
    Require all denied
</FilesMatch>
