mod-rewrite Getting started with mod-rewrite Installation


mod_rewrite must be enabled before being used on an Apache server.


Run a2enmod rewrite

Then restart Apache with service apache2 restart

General case

Add or uncomment the following line in the static configuration file (such as httpd.conf):

LoadModule rewrite_module modules/

Then restart Apache.