Enabling mod_rewrite in Apache webserver

Enabling mod_rewrite in Apache webserver 1.X is surprisingly easy because it is included in the installation, and just disabled with a # in front of its module configuration lines in httpd.conf

So all you have to do to enable mod_rewrite is :

  1. Open httpd.conf
  2. Remove the # from the line #LoadModule rewrite_module
  3. Remove the # from the line #AddModule mod_rewrite.c
  4. Restart the Apache process

One thought on “Enabling mod_rewrite in Apache webserver”

Leave a Reply

Your email address will not be published. Required fields are marked *