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
Worked great here, thanks for tip!
Thank you very much i am so much frustrated about this issue you give me my life and this is now working
Thanks
Thank you so much!
but i have 1 query that:
this problem face in localhost we solve it by some changes in localhost file ok fine.
but this problem can be face in webserver?, when our application is run in market.
Thanks a lot!
You made my day, I tried for about 8 hours to make it work.
Hi, I am facing a problem.
I have done all the setting like you mentioned
but I can only access to the index page.
All the pages other than index are shown “Page not found”
I am using wamp server.
Do you know what the error is ?
Just wanted to say thank you for this. I have spent way to long getting this nonsense figured out.
Thank you.
It does not work for me..
This is what I have in my htaccess.
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^news/([^/\.]+)/?$ news.php?news_title=$1 [NC]
RewriteRule ^profiles/([^/\.]+)/?$ profiles.php?name=$1 [NC]
RewriteRule ^lyrics/([^/\.]+)/?$ lyrics.php?name=$1 [NC]
Please help me as I am getting frustrated..
Thanks you all.
Thanks a lot you made my day!
Very helpful. I solved my problem with the help of this.