Ubuntu – Enabling clean URL in Drupal6

The easiest way to enable cleanURL Ubuntu is:

1.  enable rewrite module on apache.

a2enmod rewrite
(This can be disabled by doing: a2dismod rewrite)

2.  Set directory permission.

You must find the file that sets permission of each directory for apache. In ubuntu, it is in

/etc/apache2/sites-enabled/000-default
Edit the page so that the directory that you will be using to serve webpages has “AllowOverride All”.

The file should read like this:
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all

3.  Just restart apache and it should be working:
/etc/init.d/apache2 restart

This should enable CleanURL in Ubuntu.


Follow

Get every new post delivered to your Inbox.

Join 53 other followers