- Ensure that mod_rewrite is enabled for Apache 2:
% sudo a2enmod rewrite
- Edit Apache 2 configuration to allow Drupal's .htaccess file to be used. In file /etc/apache2/sites-enabled/000-default, inside the tag Directory /var/www/, replace the line
AllowOverride none
withAllowOverride All
- Restart Apache 2:
% sudo /etc/init.d/apache2 restart