Support the ongoing development of →
Installation Configuration
Last updated 2 years ago.

Either you will have to configure your domain to point to the /public directory (which would be the best solution) or you use this htaccess solution:

Solution number 3: place your files outside of your public directory (the one your domain points at right now) and change the name of the public directory in laravel to that one.


Great ! if a have a folder inside public_html/, for example myapp/ the htacess rule will be the same ?

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

About option 3 : If i move outside the /public directory all the Laravel directories but not the laravel /public directory and let the laravel /public directory content inside /public_html/myapp/ which files must i change into laravel 5.1 ?


the best approach would be to point your domain root to public. the reason the public folder is isolated is because, if some server fault occurred your app's php files are invisible from the internet (most of the time)


Sign in to participate in this thread!


Your banner here too?

amrigo amrigo Joined 26 May 2015


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

Your logo here?

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

© 2024 - All rights reserved.