Support the ongoing development of Laravel.io →
Installation Views
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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...

Last updated 2 years ago.
0

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/

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.