I want to set the AllowOverride all
But I don\'t know how to do it. I have found the following code by searching the google and pasted it in .htaccess
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
You may need to also do sudo a2enmod rewrite
to enable module rewrite.