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.
sudo a2enmod rewrite
Restart your your apache.
sudo service apache2 restart
Comments