How to enable mod_rewrite in WordPress

…so you can have descriptive URLs like ours. Three easy steps:

1) First, from /etc/apache2/mods-enabled/

ln -s /etc/apache2/mods-available/rewrite.load

2) Then…

/etc/init.d/apache2 restart

3) Last, add this stuff to your virtual host definition (in my case, /etc/apache2/sites-available/everythingiscrap)

RewriteEngine On
RewriteOptions Inherit

I guess  you could say that the last step is to ENABLE descriptive permalinks in the WordPress Dashboard > Settings > Permalinks. But I had already done that before I went poking around on the server. So, for me it was a three step process, but I guess you could argue that it's a four step process.

Leave a Reply

Your email address will not be published.