Laravel: .htaccess redirect from root to /public

Please the code below in your .htaccess file at the root of your laravel installation.

<IfModule mod_rewrite.c>
    RewriteEngine On

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

 

If this doesn’t work for you, please make sure you have ran “compose install” downloading laravel OR your server has rewrite module enable.