Mod rewrite / clean urls for Drupal on Ubuntu Apache Server

Just spent the last few days trying to get clean urls to work on my Ubuntu apache2 server, and finally found a thread on a Drupal forum. It turned out that you have to activate mod rewrite in Apache before any of the settings in the .htaccess file will take place. Also need to remember to modify /etc/apache2/sites-availabe/default to AllowOverride All in the server settings for your domain. Once this is done, then this command gets Apache doings its mod rewrite thing:

sudo a2enmod rewrite

Simple as that. Restart or reload Apache, and now mod rewrite / clean URLs will work on your Ubuntu Drupal CMS installation.

One Comment

  1. crystalseo | Kenya Seo Experts February 10, 2013 12:18 pm

    Thanks a lot i had the same issues with my jooomla installation.

Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>