Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

laravel routes not working on production server

sudo a2enmod rewrite             # 1. 
sudo systemctl restart apache2   # 2. 

# 3. edit /etc/apache2/sites-enabled/000-default 
#  => make root directory var/www/html/public
  
# 4. Add 
<Directory /var/www/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    allow from all
</Directory>
 
PREVIOUS NEXT
Tagged: #laravel #routes #working #production #server
ADD COMMENT
Topic
Name
2+4 =