I wish to rewrite the url http://mydomain/myapp/fakefolder to http://mydomain/myapp/index.php

I attempted the next rule but this isn't working

RewriteEngine On
RewriteRule ^fakefolder$ index.php  

The .htaccess file is situated inside myapp.

Kindly help

Thanks vineet

To start with, your folder isn't known as vineetstore: it's known as fakefolder.

The remedied rule works best for me so I'd dare say your Apache installation isn't set up to see .htaccess files such location. It is simple to test that: create a syntax error purposely and find out whether your website crashes.

Find your virtual host or site definition and make certain you've this directive:

AllowOverride All