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

前端 未结 18 1185
栀梦
栀梦 2020-12-23 10:44

I\'ve just started learning the Laravel framework and I\'m having an issue with routing.

The only route that\'s working is the default home route that\'s attached to

18条回答
  •  孤城傲影
    2020-12-23 11:41

    I was getting the same problem using EasyPHP. Found that I had to specify AllowOverride All in my block in httpd.conf. Without this, Apache sometimes ignores your .htaccess.

    Mine ended up looking like this...

    
        Options FollowSymLinks Indexes
        #### NEXT IS THE CRUCIAL LINE ####
        AllowOverride All                  
        Order deny,allow
        Allow from 127.0.0.1
        Deny from all
        Require all granted     
    
    

提交回复
热议问题