Enable MOD_REWRITE in WAMP/XAMPP

August 5th, 2012 by Laeeq | 1 comment

In my previous post, you had learned how to Install APC on UBUNTU with PHP and Install LAMP Server On Ubuntu

In this post I have explained few simple instructions on how to enable .htaccess mod_rewrite in wamp/xampp.

Actually mod_rewrite is an Apache web server module which is used to rewrite a URL at the server level. This module has a variety of uses like used to redirect one URL to another URL, maps a URL to a filesystem path etc. But it is most frequently used to provide clean, search engine friendly URLs.

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

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

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

2. Open and edit httpd.conf in a text editor

3. Find the line which contains

  1. #LoadModule rewrite_module modules/mod_rewrite.so

remove (#) from start of line to make modue enable

Now line will look like below

  1. LoadModule rewrite_module modules/mod_rewrite.so

4. Now find all occurrences of

  1. AllowOverride None

and change to

  1. AllowOverride All

It appears 2 or 3 times on the configuration file.

5. Finally restart wamp/xampp server to make it work.

Now mod_rewrite module installed and you can make your site’s URLs search engine friendly using .htaccess.

You can subscribe to PHPZAG.COM posts by Email

 

Related Topics:

 

 

  1. baileyswinfordwj
    October 3rd, 2012 at 16:46 | #1

    But wanna remark on few general things, The website pattern is perfect, the articles is rattling superb. “I delight in men over seventy. They always offer one the devotion of a lifetime.” by Oscar Fingall O’Flahertie Wills Wilde.

  1. No trackbacks yet.