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>
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