How to enable mod rewrite in apache2
It doesn’t matter if you use Zend Server, Wamp or Xamp…the steps are the same.
If you ever need to use mod_rewrite for your website you need to know that you have to change two things in your apache configuration.
a).First thing is to GO to your apache configuration file ( http.conf or httpd.conf ).
Find this line: #LoadModule rewrite_module modules/mod_rewrite.so
The # is telling you that this line is inactive or is commented.
b).Change this line to LoadModule rewrite_module modules/mod_rewrite.so
Then find all occurrences of AllowOverride None and change to AllowOverride All .
It apears probably 2 or 3 times in the file.
c).Restart your apache.