Earthtracker's Blog

Just another WordPress.com weblog

Enable mod rewrite in Ubuntu Apache server

on May 28, 2010

To enable mod_rewrite in Apache server in Ubuntu is pretty simple.

sudo a2enmod rewrite
sudo gedit /etc/apache2/sites-enabled/000-default

Edit the file 000-default:

<Directory />
 Options FollowSymLinks
 AllowOverride ALl
 </Directory>
 <Directory /var/www/>
 Options Indexes FollowSymLinks MultiViews
 AllowOverride All
 Order allow,deny
 allow from all
 </Directory>
sudo /etc/init.d/apache2 restart
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: