My Routes are Returning a 404, How can I Fix Them? My Routes are Returning a 404, How can I Fix Them? laravel laravel

My Routes are Returning a 404, How can I Fix Them?


On my Ubuntu LAMP installation, I solved this problem with the following 2 changes.

  1. Enable mod_rewrite on the apache server: sudo a2enmod rewrite.
  2. Edit /etc/apache2/apache2.conf, changing the "AllowOverride" directive for the /var/www directory (which is my main document root): AllowOverride All

Then restart the Apache server: service apache2 restart


Using WAMP click on wamp icon ->apache->apache modules->scroll and check rewrite_moduleRestart aLoadModule rewrite_module

Note, the server application restarts automatically for you once you enable "rewrite_module"


Have you tried to check if

http://localhost/mysite/public/index.php/user 

was working? If so then make sure all your path's folders don't have any uppercase letters. I had the same situation and converting letters to lower case helped.