I have seen many questions like this, which solve in removing public in cases like example.com/public. But in my case i have example.com/cases/public. How to deal with this type of situatations.
2 Answers
Follow this steps to remove the public from url
- Copy .htaccess file from /public directory to Laravel/project root folder.
- Rename the server.php in the Laravel/project root folder to index.php.
Cheers your will be good now.
Please Note: It is tested for Laravel 4.2, Laravel 5.1, Laravel 5.2, Laravel 5.3.
I think this is the easiest way remove public.
DocumentRoot(apache) orroot(nginx) point to yourlaravelproject/public?/project/cases/public.