Paste the following command into the rewrite.load file:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so
Next, open the file / etc / apache2 / sites-available / default and look for the following parameters:
Indexes Options FollowSymLinks MultiViews
AllowOverride None
and change to:
Indexes Options FollowSymLinks MultiViews
AllowOverride all
Finally, restart Apache:
sudo /etc/init.d/apache2 restart
Good luck!