Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dhrubo001's avatar

Unable to remove index.php from the URL in LARAVEL 4.2

I have copied all files from PUBLIC folder and pasted them in the root folder, then updated the index.php and bootstrap/paths.php file accordingly.

But apart from my default routes, all other routes need index.php to work. This doesn't happen earlier ,

I just want to remove index.php from the URL.

How to do it

0 likes
1 reply
lostdreamer_nl's avatar

copy the .htacces file from public as well ;) That should be all that's necessary

Please or to participate in this conversation.