I have added htaccess rules to rewrite url like following...
RewriteRule ^demo/$ demo.php [L,QSA]
This is working fine for me. Now issue is i want to block url for demo.php file. Like user can access only
www.example.com/demo/ (valid)
www.example.com/demo.php (not valid and want to block this url)
Please help me do this. Thanks,