Enable clean URL in Drupal on Debian

By xngo on June 23, 2019

Do the following to enable clean URL in Debian 8:

  1. Enable rewrite module: a2enmod rewrite
  2. Open /etc/apache2/apache2.conf and look at the block <Directory /var/www/>. Then change from AllowOverride None to AllowOverride All.
  3. Restart apache: service apache2 restart.

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.