- Execute a2enmod rewrite
to enable mod_rewrite. You can run apache2ctl -M to verify that the module is loaded (shows up as rewrite_module in the list) after performing step 3 below.
- Change the file /etc/apache2/sites-available/default so that the section Directory /var/www/ includes the statement
AllowOverride Allinstead of AllowOverride None.
- Reload apache modules by issuing /etc/init.d/apache2 force-reload.
Thursday, March 26, 2009
Finally... Clean URLs in Drupal with Debian Lenny
I managed to find out how to enable clean URLs in Drupal (I did a manual installation of Drupal 6.10) on Debian 5.0 (Lenny). What bliss. The correct advice was found among the comments to the "clean URLs with Debian" page that I referred to before. In order to save some potential readers the trouble, and as a reminder to myself, here is the recipe (everything must be run with root privileges):