Enable clean URL

Tag(s):

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: sed -i '/var\/www\//,/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
  3. Restart apache: service apache2 restart.

http://drupal.stackexchange.com/a/105597