How to enable mod_rewrite in apache on Ubuntu

apache-2.2mod-rewrite

How do you enable mod_rewrite with Apache in Ubuntu 10.04?

I tried copying rewrite.load from /etc/apache2/mods-available to etc/apache2/mods-enabled but that didn't work.

Best Answer

Try this: sudo a2enmod rewrite, and then restart apache.