How To Enable Mod_Rewrite Module In Apache in Xampp Windows

In This tutorial i will described how to enabled and disbaled mode rewrite in your wamp/xampp mod_rewrite is an Apache web server module which is used to rewrite a URL at the server level.The mod_rewrite module normally uses a rule-based rewriting engine to rewrite requested URLs based on PCRE regular-expression parser, By defaults mod_rewrite maps a URL to a filesystem path.It allow you to rewrite URL based on server variables, environment variables, HTTP headers, or time stamps.

This module main use for make URLs search engine friendly.

A rewrite rule can be enabled through in httpd.conf or in .htaccess file.

Instructions on how to enable .htaccess mod_rewrite in wamp/xampp

Step 1: Go to the directory of installation C:\xampp>\apache\conf

OR C:\wamp\bin\apache\Apache2.2.11\conf

Step 2: Open httpd.conf in a text editor

Step 3: Find the line which contains

#LoadModule rewrite_module modules/

Step 4: Remove (#) from start of line to make module enable

Step 5: Now Change all occurrences of
AllowOverride None
and replace to
AllowOverride All

Step 6: Now restart wamp/xampp server.