Enable (or disable) the mod_rewrite module on Apache2 web server on Ubuntu 12.04

For “pretty” Permalinks to work properly in WordPress, the mod_rewrite module on the Apache2 webserver needs to be enabled.

 Posted April 12, 2016

Enable mod_rewrite module using ‘a2enmod’ (Apache2 Enable Module tool) with sudo permissions:

Output:
Then restart Apache to activate:

That’s it!

If you ever need to disable this module:

Disable mod_rewrite module using ‘a2dismod’ (Apache2 Disable Module tool) with sudo permissions to disable “rewrite”:

Output:
And then restart Apache to activate the changes:
 

Leave a Reply

Your email address will not be published. Required fields are marked *