My directories/files structures is this one.
| client | .htaccess | .htpasswd | index.php (this file needs to be protected) | directory1 (this