laravel routes not working on production server

Solutions on MaxInterview for laravel routes not working on production server by the best coders in the world

showing results for - "laravel routes not working on production server"
Mateo
26 Mar 2016
1sudo a2enmod rewrite             # 1. 
2sudo systemctl restart apache2   # 2. 
3
4# 3. edit /etc/apache2/sites-enabled/000-default 
5#  => make root directory var/www/html/public
6  
7# 4. Add 
8<Directory /var/www/>
9    Options Indexes FollowSymLinks MultiViews
10    AllowOverride None
11    Order allow,deny
12    allow from all
13</Directory>
Anna
20 May 2020
1sudo a2enmod rewrite             # 1. 
2sudo systemctl restart apache2   # 2. 
3
4# 3. edit /etc/apache2/sites-enabled/000-default 
5#  => make root directory var/www/html/public
6  
7# 4. Add 
8<Directory /var/www/>
9    Options Indexes FollowSymLinks MultiViews
10    AllowOverride None
11    Order allow,deny
12    allow from all
13</Directory>
14