How to enable mod_rewrite on Ubuntu ...



How to enable mod_rewrite on Ubuntu 11.
Ubuntu 11.x comes with mod_rewrite ready to be enabled, so we only need to get it inside the mod-enabled directory

Steps:

  • cd /etc/apache2/mods-enabled/
  • sudo ln -s ../mods-available/rewrite.load
  • sudo apachectl restart
ยป

Comments

This will do fine with every

This will do fine with every other apache module.
Example:

How to enable mod_headers on Ubuntu 11.
Ubuntu 11.x comes with mod_headers ready to be enabled, so we only need to get it inside the mod-enabled directory

Steps:

cd /etc/apache2/mods-enabled/
sudo ln -s ../mods-available/headers.load
sudo apachectl restart