1. execute these instructions
# sudo a2enmod rewrite
# sudo apache2ctl -l
2. replace the occurrence of AllowOverride None to AllowOverride all
# vi /etc/apache2/sites-enabled/000-default
<VirtualHost *:80> ServerAdmin admin@localhost DocumentRoot /var/www/ <Directory /> Options FollowSymLinks AllowOverride all <- change this line like that </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride all
<- change this line like that
Order allow,deny allow from all </Directory>
3. restart apache
# sudo service apache2 restart
reference site : here