I have a folder (folder\_1) that is protected by htaccess/htpasswd files. Inside that folder is another folder (folder\_2) that is protected by another couple of htaccess/htpasswd files.

When a php-script in folder\_1 or folder\_2 is called, the user has to authenticate herself using the correct username and password as specified in the respective htaccess/htpasswd files. This works as intended.

However, as soon as the php-script in folder\_2 tries to refer to another script or a css-file that is located in folder\_1, the user must enter username and password for folder\_1 as well.

Is there a way to avoid this that does not involve copying scripts and css-files from folder\_1 to folder\_2?

Regards,
Ralf