I want to deny access to all .php files inside the following folder
/engine/engine.php
/engine/*.php
/engine/inc/*.php
/engine/ajax/*.php
I tried using the following code .. but if i used the following code my site's ajax stopped working
.htaccess code was
<Files ~ "^.(htaccess|htpasswd)$">
deny from all
</Files>
Options Indexes
ErrorDocument 404 /engine/inc/include/init.php
order deny,allow
and the 2nd code which i tried was
<Files "*.php">
Deny from all
</Files>
but also if i use the above code my site's ajax stops working :(
i want a .htaccess code through which i can deny access to those above mentioned files to all clients and not to my site's php script