sudo a2enmod rewrite
cd /etc/apache2
sudo vim apache2.conf
<Directory /var/www/>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
sudo service apache2 restart
sudo a2enmod rewrite
cd /etc/apache2
sudo vim apache2.conf
<Directory /var/www/>
Options Indexes FollowSymlinks
AllowOverride All
Require all granted
</Directory>
sudo service apache2 restart