# Root security and routing
<IfModule mod_authz_core.c>
    <FilesMatch "^\.(env|git)">
        Require all denied
    </FilesMatch>
    <FilesMatch "^composer\.(json|lock)$">
        Require all denied
    </FilesMatch>
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "^\.(env|git)">
        Order deny,allow
        Deny from all
    </FilesMatch>
    <FilesMatch "^composer\.(json|lock)$">
        Order deny,allow
        Deny from all
    </FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^api/(.*)$ public/api/$1 [L,QSA]
</IfModule>

Options -Indexes
