How to Enable .htaccess in Ubuntu 10.10
The default installs of Ubuntu don’t allow you to override Apache2 settings in .htaccess. The fix is simple.
Edit /etc/apache2/sites-available/default (with vi, nano, WinSCP, whatever)
Look for <Directory /var/www/>
Just below, look for AllowOverride None
and change it to
AllowOverride All
Save and and then restart apache2 by typing:
sudo /etc/init.d/apache2 restart
That’s it! Your settings in .htaccess should now work.
