Laravel 4 All Routes Except Home Result in 404 Error
Just for a laugh, see if /index.php/hello
works.
If so, then most likely it's a .htaccess
problem.
Had the same problem running Laravel 4 on WAMP (Windows 8).
The solution that worked for me was:
Open apache httpd.conf and find this line :
#LoadModule rewrite_module modules/mod_rewrite.so
- Uncomment this line (remove the
#
) - Save
httpd.conf
- Restart WAMP
It should be working!
I had the same problem and the solution was enable the rewrite mod on Apache2
In a terminal use the following commands:
$ sudo a2enmod rewrite$ sudo service apache2 restart
And magic!