Open terminal write the following codes:
sudo a2enmod rewrite
sudo gedit /etc/apache2/sites-available/default
After executing the second code, a text editor will be open. Find the following code:
Edit and change like below:
Then restart apache
sudo service apache2 restart
-That's all.
sudo a2enmod rewrite
sudo gedit /etc/apache2/sites-available/default
After executing the second code, a text editor will be open. Find the following code:
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
Edit and change like below:
Options Indexes FollowSymLinks MultiViews
AllowOverride all
Order allow,deny
allow from all
Then restart apache
sudo service apache2 restart
-That's all.