Enable htaccess in Apache 2.4.7 on Ubuntu
open terminal
ctrl+alt+t
open etc folder into this open apache2
etc->apache2->apache2.conf
into this file
Options Indexes FollowSymLinks
AllowOverride none
Require all denied
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
First enable rewrite using this command:
sudo a2enmod rewrite
Then restart apache2:
sudo service apache2 restart
Enjoy :)
No comments:
Post a Comment