Jumprit's Knowledge

Jumprit's knowledge and references to share.

Enabling .htaccess in XAMPP —

In the following simple solution, I show you how to enable mod_rewrite to enable the use of .htaccess on Apache servers in XAMPP. So can be used for example to enable SEO friendly URL.

  1. Using a text editor, open theĀ httpd.conf file. In XAMPP, this file is found in theĀ \apache\conf directory (or /lampp/etc in linux)
  2. Locate the following line of code:

    #LoadModule rewrite_module modules/mod_rewrite.so

  3. Remove the # from the line as seen below to enable the module:

    LoadModule rewrite_module modules/mod_rewrite.so

  4. Save the httpd.conf file and Restart your server
  5. Restart your Apache Server

Now you can use .htaccess in XAMPP


Categorised as: XAMPP



Leave a Reply