Smart A. S. blog

Alexei Shuga, the web developer

Hey, Apache! Do you mod-rewrite?

without comments

The quickest way to check if apache’s module mod_rewrite is running is by running this command

sudo apache2ctl -M 2>&1| grep -i rewrite

Now, if you want to enable mod_rewrite, run the following command:

sudo a2enmod rewrite

And finally, restart apache server:

sudo apache2ctl restart

ps. Do not forget to set up correct value for the AllowOverride apache directive to enable correct .htaccess behaviour for your code.

Written by Alexei Shulga

August 15th, 2009 at 6:28 pm

Leave a Reply

You're encouraged to check out my developer resume.