What I want to happen is:
- Restrict user to access folder and files inside it (something like .htaccess deny from all)
- Allow some URL to access files inside this restricted folder.
Scenario:
- User access "localhost/php" and "localhost/php/adduser.php" should be denied.
- User access "localhost/api/adduser" will display response from "localhost/php/adduser.php"
As far as I know, mod_rewrite can help me with this, but I'm not sure how could this be done.