edit the .htaccess section
then add the <IfModule mod_rewrite.c> tag opener above the rewrite engine on and ends with a closing </IfModule> tag.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]
</IfModule>