Enable Clean Urls on KUbuntu 14.04/15.10 for Drupal 8

In only 3 steps!

1. Enable the rewrite module; sudo a2enmod rewrite

2. Edit apache2.conf: sudo nano /etc/apache2/apache2.conf . Go to: "<Directory /var/www/>" (localhost) edit "AllowOverride None" to "AllowOverride All". Save (Ctrl+O) and exit (Ctrl+X).

3. Restart apache: sudo service apache2 restart (and go to http://localhost/drupal8/)



Localhost (for developing)

More information on: https://www.drupal.org/getting-started/clean-urls#dedicated