Enable mod_rewrite in windows , WAMP, XAMPP

by Php Ninza on August 22, 2009

Wamp and XAMPP doesn’t come with default rewrite rule enabled, For enabling the rewrite rules in both of them you need to make changes in httpd.conf so that apache can work with rewrite rules.

For enabling the rewrite rules follow these rules:-

1) find httpd.conf (usually this file can be found in folder callled conf , config or something along those lines)

2) Find and uncomment the line LoadModule rewrite_module modules/mod_rewrite.so

3) Find the line with DocumentRoot “C:/path/to/my/root”, There you will find contents like

<Directory>

</Directory>

Make sure the content inside these two braces looks like

<Directory>

Options All

AllowOverride All

</Directory>

4) All done now restart the Apache server and you will be all good to go

Technorati Tags: ,,,

{ 10 comments… read them below or Shout @ me! }

tek_news August 22, 2009 at 9:25 am

Reddit/p: Enable mod_rewrite in windows , WAMP, XAMPP http://bit.ly/UcQ58

This comment was originally posted on Twitter

Reply

djbhai August 22, 2009 at 9:43 am

Enable mod_rewrite in windows , WAMP, XAMPP #php http://is.gd/2tmC9

This comment was originally posted on Twitter

Reply

Darold July 11, 2011 at 9:07 pm

Cheers pal. I do apecpriate the writing.

Reply

Learn PHP July 12, 2011 at 11:51 am

Glad you like it Daroid. Keep visiting.

Reply

Osama Al-Agha April 7, 2012 at 1:17 am

Thank a lot , you helped me a lot with this info :)

Reply

Milap May 23, 2012 at 1:12 am

Thanks for sharing. Working perfect.

Reply

Manoj Damkondwar January 17, 2013 at 9:36 am

thanks for help, I was very confusion.

Reply

Wayne Riesterer January 30, 2013 at 12:38 am

Thanks for posting that up. Onto to the next leg of the journey :)

Reply

Sid February 22, 2013 at 4:54 pm

Thanks. Works perfect now.

Reply

Cory W March 11, 2013 at 9:23 am

This worked perfectly. Thank you! :)

Reply

Leave a Comment

Previous post:

Next post: