I\'ve got fresh install of Apache 2.2 on my Vista machine, everything works fine, except mod rewrite.
I\'ve uncommented
LoadModule rewrite_module mo
In Ubuntu:
Run:
a2enmod rewrite
and then:
service apache2 restart
mod_rewrite
will now be enabled!
I just did this
sudo a2enmod rewrite
then you have to restart the apache service by following command
sudo service apache2 restart
What worked for me (in ubuntu):
sudo su
cd /etc/apache2/mods-enabled
ln ../mods-available/rewrite.load rewrite.load
Also, as already mentioned, make sure AllowOverride all
is set in the relevant section of /etc/apache2/sites-available/default