In Laravel the path for serving your web page is in the /public folder. By default after installing Laravel and navigating in a browser to the URL you will see a directory listing of all the Laravel files. Here’s an easy way using an .htaccess file to redirect requests to the Laravel /public folder user mod_rewrite. 


Create a .htaccess file in your root directory and add the following code.


    RewriteEngine On

    # Force SSL on this URL
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    
    # Remove public folder form URL
    RewriteCond %{REQUEST_URI} !^public
    RewriteRule ^(.*)$ public/$1 [L]


Save your file and refresh your browser, you should now see the application installation wizard or login page.