You need to configure your webserver to route all requests to public/index.php. Otherwise routing will not work. There are instructions available on how to do that in Laravel documentation.
Oct 14, 2019
4
Level 5
404 routes problem laravel
Hey guys I'm trying to deploy my app in production but I'm facing 404 not found error on laravel routes..
I followed some tutorials and did the following
sudo a2enmod rewrite
sudo service apache2 restart
edited /etc/apache2/sites-available/my-file.conf
DocumentRoot /var/www/html/
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
edited /etc/apache2/sites-available/apache2.conf
from
DocumentRoot /var/www/html/
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to
DocumentRoot /var/www/html/
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
it get fixed but when I access again for a couple of times i get back the same error.. couldn't know why this happening..
Please or to participate in this conversation.