Home > Apache, PHP > How to enable rewrite module in XAMPP, WAMP and Apache

How to enable rewrite module in XAMPP, WAMP and Apache

March 4th, 2009

If you are using XAMPP or WAMP as your web server, you may face a common problem that is the rewrite module (mod_rewrite) does not work properly. It is because the rewrite module is not enabled by default in Apache’s configuration settings. But you can enable it manually by doing few simple steps:

  1. Open apache’s configuration file using your favorite text editor. The configuration file generally locates at:{apache_dir}/conf/httpd.conf
    If you are using XAMPP or WAMP package then you will find the file at:{xampp_dir}/apache/conf/httpd.conf
    {wamp_dir}/apache/conf/httpd.conf
  2. Search for the following string:#LoadModule rewrite_module modules/mod_rewrite.so and uncomment it (remove the ‘#’ sign).
  3. Now search for another string AllowOverride None and replace it by AllowOverride All
  4. Finally save the changes, close your text editor and restart your apache server.

That’s all. :)

$@!ful Apache, PHP , , , , , , ,

  1. john
    June 8th, 2009 at 19:41 | #1

    THANKS!!!
    you made my day, i have tried for long time to make it work
    but i was needed to change the AllowOverride All

    it works now.

  2. June 17th, 2009 at 02:55 | #2

    Thank alot!!!

    It took me some time to find this answer.Thanks again

  3. August 30th, 2009 at 06:23 | #3

    Haven’t used WAMP before until now. Thanks for this article.

  4. December 14th, 2009 at 11:40 | #4

    Thank alot!!?

    My Problem resolved, with modify AllowOverride none to AllowOverride All on sites-availble.

    I used ubuntu 9.10.

  5. Brad
    February 26th, 2010 at 05:57 | #5

    Thanks! :-)

  1. No trackbacks yet.