link Laravel Routes Not Working← Back

When modifying Laravel's routes.php to add new routes, you get a 404 error when trying to browse to them. The solution is quite simple thanks to Jamie Tibbetts.

You just need to modify your Apache <VirtualHost> configuration to include AllowOverride All in your <Directory> stanza.

<VirtualHost *:80>
        DocumentRoot /var/www/home/public
        ServerAlias www
        <Directory "/var/www/home">
                order allow,deny
                allow from all
                AllowOverride All
        ErrorLog /var/log/httpd/home_errorlog
        CustomLog /var/log/httpd/home_errorlog common


There are no comments

Post a comment