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
        ServerAdmin you@domain.com
        ServerName www.domain.com
        ServerAlias www
        <Directory "/var/www/home">
                order allow,deny
                allow from all
                AllowOverride All
        </Directory>
        ErrorLog /var/log/httpd/home_errorlog
        CustomLog /var/log/httpd/home_errorlog common
</VirtualHost>


Comments

There are no comments


Post a comment