Enabling mod_rewrite in Apache under Ubuntu Server
Here’s some quick instructions on enabling mod_rewrite in Apache under Ubuntu 10.04 Server.
- sudo a2enmod rewrite
- sudo vi /etc/apache2/sites-available/default
- Change “AllowOverride” from “None” to “all” for the /var/www directory.
- sudo /etc/init.d/apache2 restart
That’s it!




