Sunday, 10 July 2011

Enabling mod_rewrite in Apache under Ubuntu Server

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

No comments:

Post a Comment