1) Ensure the mode_rewrite is enable for apache2:
sudo a2enmod rewrite

2) Edit apache2 configuration to allow Drupal’s htaccess file to be used.
replace the line
 AllowOverride none
with
 AllowOverride All

3) Restart the apache2
sudo /etc/init.d/apache2 restart

Advertisements