DirectoryIndex public/index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$ public/ [L]
</IfModule>

<FilesMatch "^(config|config\.example)\.php$">
    Require all denied
</FilesMatch>
