Problem with redirect to public with Laravel in subfolder

I would like to put some Laravel projects in a subfolder but I have a problem. The example path is /var/www/html/laravelA and /var/www/html/laravelB. When I go to localhost/laravelA I see the file listing. I tried using standard htaccess to redirect to public

RewriteEngine On
RewriteCond %{REQUEST_URI} !^/public/
RewriteRule ^(.*)$ /public/$1 [L,QSA].

but is use causes a 404 apache2 error. I am running on apache2 installed on Debian.

I trying use this htaccess

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

but Laravel show 404 if there is no public in the url