Friday, October 1, 2010

.htaccess not running in ubuntu

The solution is simple just follow the following steps

run this command in a terminal:

sudo gedit /etc/apache2/sites-available/default

and under there is a text saying:
AllowOverride none

change it to

AllowOverride All

save it and exit

and then run this command in a terminal:
sudo a2enmod rewrite

then sudo /etc/init.d/apache2 restart

and you are done :)

1 comment: