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.
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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community