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