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

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: https://coderwall.com/p/erbaig/laravel-s-htaccess-to-remove-public-from-url

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.

0

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 ?

0

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)

0

Sign in to participate in this thread!

Eventy

Your banner here too?

amrigo amrigo Joined 26 May 2015

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.