How to enable mod_rewrite in ubuntu?
Simply run the following command in the command line to enable mod_rewrite.
sudo a2enmod rewrite
sudo a2enmod rewrite
The command simply adds the rewrite module to the apache configuration file as mod_rewrite is a part of apache. Now we need to restart apache to make the command take effect.
sudo /etc/init.d/apache2 restart
The command automatically adds file rewrite.load to the folder /etc/apache2/mods-enabled/
Comments
Post a Comment