Modify the path here:
sudo vi /etc/apache2/sites-available/000-default.conf
and modify the path here:
sudo vi /etc/apache2/apache2.conf
To enable it the rewrite module, run "apache2 enable module rewrite":
sudo a2enmod rewrite
<Directory /var/www/>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
Change the AllowOverride None
to AllowOverride All
You need to restart the web server to apply the changes:
sudo service apache2 restart