Options -Indexes
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^api/([a-z0-9-]+)/?$ api/index.php?r=$1 [QSA,L]
RewriteRule ^(client|creator|admin)/?$ index.php [L]
</IfModule>
<FilesMatch "(?i)^(?:\.env|composer\.(?:json|lock)|config\.php|bootstrap\.php|schema\.sql)$">
Require all denied
</FilesMatch>
