The other day I was pulling my hair trying to enable rewrite in Ubuntus Apache2. Everything was installed via apt-get and I guess you get a bit spoiled when so much just works without the need to touch it ;) So when my .htaccess with rewrite had no effect I though I had syntax errors. Turns out it was this simple (in your terminal):
sudo a2enmod rewrite


