to enable mod_rewrite module in apache do the following;
1.Find the “httpd.conf” file under the “conf” folder inside the Apache’s installation folder.
2.Find the following line “#LoadModule rewrite_module modules/mod_rewrite.so” in the “httpd.conf” file.You can do this easily by searching the keyword “mod_rewrite” from find menu.
3.Remove the “#” at the starting of the line, “#” represents that line is commented.
4.restart the apache server.