Options -Indexes

<IfModule mod_authz_core.c>
    <FilesMatch "^(?:\.env|composer\.(?:json|lock)|package(?:-lock)?\.json|phpunit\.xml|.*\.(?:md|example|dist))$">
        Require all denied
    </FilesMatch>
</IfModule>

<IfModule !mod_authz_core.c>
    <FilesMatch "^(?:\.env|composer\.(?:json|lock)|package(?:-lock)?\.json|phpunit\.xml|.*\.(?:md|example|dist))$">
        Order allow,deny
        Deny from all
    </FilesMatch>
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^(?:modules|scripts|vendor)/ - [F,L,NC]
</IfModule>
