You need to change your DocumentRoot directive in your vhost to the public folder. In no way should the Laravel root be exposed to the web
Hi iWader,
Thanx foy your reply. Could you post the code to set the document root?
And the most important...what can i do on a shared hosting?...i don't have access to vhost i think...
Move your laravel folder to your root directory, then move the contents of your laravel/public folder to ~/public_html and then edit public_html/index.php and update the path to autoload.php and start.php to point to ~/laravel/
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community