You are here

Debian

Getting Drupal's Clean URLs working on a Debian based system

Submitted by Karthik on 1 January, 2007 - 04:28

My default Kubuntu install needed some tweaking to get Clean URLs working (in Drupal 5, Apache 2). This is a quick guide to getting this sorted for other users out there:

First off, the mod_rewrite module isn't enabled by default. To enable it, type
sudo a2enmod

and add rewrite as the module you would like enabled. (You can also enable the expires module which is also used by Drupal, but do it later).

Restart apache:

sudo /etc/init.d/apache2 force-reload

Check if the clean URLs test (in ?q=admin/settings/clean-urls) works. If not, jump to the /etc/apache2/sites-enabled directory and check what your setup is like. By default, you should just see the 000-default link here. (Backup first and) Edit the file:

Subscribe to RSS - Debian