For apache version 2.4 and later, you have to go to
firstly enable a2enmod
sudo a2enmod rewrite
and
sudo service apache2 restart
sudo nano /etc/apache2/sites-enabled/000-default.conf
add these lines at end
<Directory /var/www/html>
AllowOverride All
</Directory>
and
sudo service apache2 restart
No comments:
Post a Comment