View Single Post

  #2 (permalink)  
Old 11-22-2006
Jim Hayter
 
Posts: n/a
Default Re: .htaccess password prompt problem

mehatespam1085@yahoo.com wrote:

>
>
> This prompts anyone from outside our office IP for a password to access
> the dev folder. Unfortunately, as it stands now, it also prompts anyone
> who wants to access the pub folder for the same password (the pub and
> dev folders are located on the same level in the server).
>
> I had this working before, but lost the original .htaccess file in a
> migration. What am I doing wrong that this .htaccess is applying its
> restrictions to other folders on the same level as it? I thought
> ..htaccess restrictions were only supposed to apply to subfolders.
>
> Tx.
>


A quick search and I found this about .htaccess files: "A file,
containing one or more configuration directives, is placed in a
particular document directory, and the directives apply to that
directory, and all subdirectories thereof."

You need to move your .htaccess file to the directory you want to
controll access to.

Jim