<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
RewriteCond %{THE_REQUEST} ^.*/index\.php
RewriteRule
^(.*)index.php$ /$1 [R=301,L]
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
<Files ~
"\.(env|config.js|md|gitignore|gitattributes|lock)$">
Order allow,deny
Deny from all
</Files>
</IfModule>