How to enable rewrite module in XAMPP, WAMP and Apache
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:
- 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 - Search for the following string:#LoadModule rewrite_module modules/mod_rewrite.so and uncomment it (remove the ‘#’ sign).
- Now search for another string AllowOverride None and replace it by AllowOverride All
- Finally save the changes, close your text editor and restart your apache server.
That’s all.

I am A.N.M. Saiful Islam. Open Source Contributor, Professional Web Application Developer and currently working with SYSBD Limited as Project Manager
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.
Thank alot!!!
It took me some time to find this answer.Thanks again
Haven’t used WAMP before until now. Thanks for this article.
Thank alot!!?
My Problem resolved, with modify AllowOverride none to AllowOverride All on sites-availble.
I used ubuntu 9.10.
Thanks!
hey, this might be a stupid question… But I found the line Allow Override None twice in the httpd.conf of apache 2.2.11 (with the wamp 2.0 package) do I change both of them?
Thanks in advance
Yap, you can. Happy rewriting
Thanks for all my problem solved
but i have another one. when i enter to my site from another pc in local
network the appache server index apper and my site index too but all link in this page not work.
help me please.
thanks