I moved Laravel file to subfolder and hit url localhost/test/public it's working fine but I want to use url localhost/test. I put .htaccess in test folder but than localhost/test showing 404
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>