Step 1
Check if mod_rewrite and mod_proxy modules are enabled for apache. To do so put following command:
1 2 | a2enmod rewrite a2enmod proxy |
this will enable the required modules if they are not enabled yet.
Step 2
Go to “/etc/apache2/sites-enabled/”. Open the corresponding file for which domain you want to activate rewrite module. In my case that is local server and i checked in 000-default file.
Find the following entry corresponding to your root directory
AllowOverride None
Replace this with:
AllowOverride all
With above steps i found my mod_rewrite module enabled and working sucessfully.
2 comments
Posted in Linux, Ubuntu
Written on Thu, 15 May 2008 at 4:49 am
Tags: Ubuntu
If you liked this post, then consider subscribing to our full RSS feed.
July 25th, 2008 at 4:22 pm
Thank you so much Rimpy did the trick for me on a development server I set up that had mod_rewrite disabled.
July 26th, 2008 at 1:27 pm
Hi jcorrea,
Yes sure. This trick is working on development server too.