Options -Indexes
DirectoryIndex public/index.php index.php
<FilesMatch "(?i)\.(env|sql|log|bak|old|zip|xml)$">
  Require all denied
</FilesMatch>
<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule ^$ public/index.php [L]
  RewriteRule ^api\.php$ public/api.php [L]
</IfModule>
