How to enable mod_rewrite for Apache 2.2

Share:
I have a fresh install of Apache 2.2 on my Ubuntu 12.4 machine, everything works fine, except mod_rewrite. I have tried many commands to enable the mod_rewirte in apache 2, but none of my rewrite rules work for me.

After some search on google I found some solution to enable the mod_rewirte in apache 2 in Ubuntu.

In order to use mod_rewrite you can type the following command in the terminal:

 a2enmod rewrite  

Restart apache2 after


 /etc/init.d/apache2 restart  

No comments

'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })();

Ads