Tag Archives: Linux

Enable Apache Rewrite Module on Linux

I use Linux Mint 10 “Julia”. After I installed apache, rewrite module was disabled by default. We need to do some configuration to enable it. It’s easy 🙂

Here I describe the steps to enable rewrite module (mod_rewrite)

Move to apache folder. Type :

cd /etc/apache2

Enable mod_rewrite. Type :

sudo cp mods-available/rewrite.load mods-enabled/

Then edit overriding configuration on /etc/apache2/sites-available/000-default.

We can edit it with editor like nano or gedit, suit your self . If you choose nano editor, you could do it by type :

sudo nano /etc/apache2/sites-available/000-default

Find the following :

Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all

and change it to :

Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all

Finally, restart  your Apache by type

sudo /etc/init.d/apache2 restart

Done!

Leave your comment please 🙂