Apache URL Rewrite not working

If you are using Apache as web server and URL rewrite is not working, the first step to make sure is the mod_rewrite module.
Apache's mod_rewrite module is responsible to rewrite URLs. Check more about Apache's rewrite module at http://httpd.apache.org/docs/current/mod/mod_rewrite.html

Enabling Apache's mod_rewrite module should make your URLs working. 

If even though you have enabled mod_rewrite module and rewrite URLs are not working, make sure your Apache's configuration allows overriding in your web document directory.

You can find the configuration in Apache's configuration file httpd.conf. Open httpd.conf file in your favorite editor and find AllowOverride None.

Change the AllowOverride None to AllowOverride All

Check your URLs now.