I was trying to use the routes that I have configured in Laravel but Apache always respond me with “The requested URL was not found on this server.” Even when I have the proper .htaccess
To fix this “problem” just enable the rewrite module and allow the override configurations, to do so run the following command
sudo a2enmod rewrite
And update the /etc/apache2/apache2.conf under the directory that contains your application files
<Directory "/var/www/"> Options Indexes FollowSymLinks AllowOverride All Require all granted </Directory>
Make sure that AllowOverride All it’s there and restart Apache.
sudo service apache2 restart
That should fix the problem, also check that the Apache user, by default www-data has access to the files and directories that you are using
thanks for sharing
LikeLike