Thank you,
It was the error on my side. By default the apache is not enabled to Mod_rewrite. uncomment it and every thing works fine.
if anyone else needs to do so, here is how . . .
Enable mod_rewrite
1. Find the httpd.conf file (usually you will find it in a folder called conf, config or something along those lines)
2. Inside the httpd.conf file uncomment the line LoadModule rewrite_module modules/mod_rewrite.so (remove the pound ‘#’ sign from in front of the line)
and don’t forget to restart the web server!