Skip directly to content

Enable mod_rewrite module on apache on Ubuntu

on Tue, 03/16/2010 - 07:42

If you are using Drupal, clean URLs may not work out of the box on your Ubuntu machine. You would need to enable mod_rewrite module on your apache to do that.

Therefore, first enable the module as follows:

sudo a2enmod rewrite

Change all occurrence of "AllowOverRide None" to "AllowOverRide All". Basically all "None" to "All" in the following file:

sudo vi /etc/apache2/sites-available/default

Restart Apache:

/etc/init.d/apache2 restart

You are done. Your Drupal install should have clean-urls working now.

thanks sunil_ebizon

Thanks  for that! This worked on my Ubuntu and now mod rewrite is perfectly working!

hallo Mr. sunil, in ubuntu , it says site offline due to some technical problem , drupal html page coming

Hai

My  name is arun kumar ,   even the home page is not displaying  ,

I did  as you said , for rewrite module,

could you tell me where is the error, i spenting  a lot  of days  for it .

I copied  the  site from windows , to   www in ubuntu .

copied the data base  to my sql

restareted  the apache ,

Done the rewrite module ,

The result is the same

please help  , many many thanks  if you could solve the problem