Apache and mod_rewrite (and .htaccess) in Ubuntu


To enable mod_rewrite in Ubuntu, you just need to write this command in terminal

    sudo a2enmod rewrite

Restart your your apache.

    sudo service apache2 restart


After enabling mod_rewrite you can write .htaccess file for your web application.

Comments