in case you are on ubuntu edit the file /etc/apache2/apache2.conf (here we have an example of /var/www)
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
and change it to;
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
then
sudo service apache2 restart