Linux and Apache

Ubuntu Apache2 mod_rewrite not working

So I’ve been delving further into getting a development server running, and have built a fully functioning webserver running with Ubuntu on an Oracle VirtualBox. Who says you need flash hardware?!

So I pull down a full backup of all my sites, and cross my fingers that all runs without any further hacking. This is infact the case, with the exception of ONE small (but significant) problem – none of my .htaccess rewrites are working, including those within WordPress.

After much testing, hacking and breaking, I managed to figure it out. Within your .htaccess file (or site configuration file, in my case /apache2/sites-available/james), add the following code:

Options -MultiViews

Now I’m not totally sure of how it all works, but it solves the problem, so I’m happy!