why laravel routes not working after server shift


“laravel routes not working properly” .

This is very common issue occured when the laravel project shifted from local host to main server.

The cause of this issue is apache configuration.It means when the project shifted, the apache requires some configuration to handling the shifting mechanism.

This is the issue of the apache2 configuration files
can be fix easily
1- go to the apache2.conf  file can be found in
2-open the above file with any editor for example :-
sudo vi /etc/apache2/apache2.conf
3- than search for below block of code
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted

and replace the above code as below code

<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
4-restart the apache2 server
sudo service apache2 restart
5-issue fix

Check it as well

Check for forum as well

Leave a Reply

Your email address will not be published. Required fields are marked *