How to remove /public/ from URL in Laravel This post has been moved to my new blog: Read Full Post Share:LinkedInTwitterFacebookEmailLike this:Like Loading...
if my site is http://example.com/Fantasy/public/ how can I access my site via http://example.com/Fantasy/ I like Method I but is not work. LikeLike Reply
Agree with dontkillme, the .htaccess file does not work on my system either (I’m using MAMP, and my sites are under /Applications/MAMP/htdocs. LikeLike Reply
also found a good tut here http://tutsnare.com/remove-public-from-url-laravel/ looks both are best LikeLike Reply
I follow all the step, but It doesn’t work, i still need to put index.php in the url to call my controller. how can i solve this? Thanks. LikeLike Reply
In Laravel 5.1 there is no file named path.php. So you have to do only second one. It works for me LikeLike Reply
if my site is http://example.com/Fantasy/public/
how can I access my site via http://example.com/Fantasy/
I like Method I but is not work.
LikeLike
Agree with dontkillme, the .htaccess file does not work on my system either (I’m using MAMP, and my sites are under /Applications/MAMP/htdocs.
LikeLike
thank you it helps me a lot!
LikeLike
also found a good tut here http://tutsnare.com/remove-public-from-url-laravel/ looks both are best
LikeLike
I follow all the step, but It doesn’t work, i still need to put index.php in the url to call my controller.
how can i solve this? Thanks.
LikeLike
In Laravel 5.1 there is no file named path.php. So you have to do only second one. It works for me
LikeLike
Thanks ! it works perfectly.
LikeLike
Thank you for such a great post!
LikeLike
Thank you Sudeep! Exactly what I needed and works well on my hosting.
LikeLike
its not working for L5. This post is suitable for L4 only
LikeLike
thanks.. work for me..!!
LikeLike
Good writeup!
LikeLike