Home >> Enable Apache2 Mod Rewrite on Ubuntu

Enable Apache2 Mod Rewrite on Ubuntu

Tuesday, February 7th, 2017 | X | How To

To enable Apache2 mod rewrite, write the following command on console:
a2enmod rewrite

Edit /etc/apache2/apache2.conf
and search for this code:

<Directory /var/www/html/>
Options Indexes FollowSymLinks
AllowOverride all
Require all granted
</Directory>

Change AllowOverride None to AllowOverride All

And lastly restart Apache:
service apache2 restart


You might also be interested in: