To enable apache’s mod_rewrite in ubuntu type the following at the terminal window
sudo a2enmod rewrite
restart apache
sudo /etc/init.d/apache2 restart
a2enmod means “apache2 enable module <-module->”




