Do the following to enable clean URL in Debian 8:
- Enable rewrite module: a2enmod rewrite
- Open /etc/apache2/apache2.conf and look at the block
<Directory /var/www/>
. Then change fromAllowOverride None
toAllowOverride All
. - Restart apache: service apache2 restart.