Open /etc/apache2/sites-available/000-default.conf and at the end on the file BEFORE "</VirtualHost>" add this <Directory /var/www/html/> AllowOverride All </Directory> sudo a2enmod rewrite sudo service apache2 restart
Open /etc/apache2/sites-available/000-default.conf and at the end on the file BEFORE "</VirtualHost>" add this <Directory /var/www/html/> AllowOverride All </Directory> sudo a2enmod rewrite sudo service apache2 restart