Computing.Net > Forums > Web Development > htaccess 1 only

htaccess 1 only

Reply to Message Icon

Original Message
Name: Jamie_McCoy
Date: June 18, 2004 at 11:38:06 Pacific
Subject: htaccess 1 only
OS: XP Pro 5.1
CPU/Ram: Pentium 4 - 2.4Ghz, 512MB
Comment:

ive got htaccess working on my server

however i can only use .htaccess once

if i create a new .htaccess in another directory then it wont accept the password

but, if i remove the other one, the one that wasnt working becomes active

obviously theirs conflict between the two

am i missing something...

do all password protected directories have to be defined in a single .htaccess file???

Sign Me Guestbook!

jaymc.co.nr


Report Offensive Message For Removal


Response Number 1
Name: sfjimih
Date: June 18, 2004 at 13:41:38 Pacific
Subject: htaccess 1 only
Reply: (edit)

These files cascade downwards, so if you place a .htaccess file in your root directory, /, and another in a sub-directory called /downloads, then when a file is requested from the /downloads directory Apache will merge the two files and use all the directives. In the event of two directives conflicting with each other, the one closest to the file will be used, in this case /downloads/.htaccess.


Report Offensive Follow Up For Removal

Response Number 2
Name: Jamie_McCoy
Date: June 18, 2004 at 14:34:54 Pacific
Subject: htaccess 1 only
Reply: (edit)

so how to i get around this..

Sign Me Guestbook!

jaymc.co.nr


Report Offensive Follow Up For Removal

Response Number 3
Name: safeTsurfa
Date: June 19, 2004 at 03:21:03 Pacific
Subject: htaccess 1 only
Reply: (edit)

Why not set one password protected parent directory as a gateway, then cascade the others you want protected within it but set as unprotected? That way the one login will gain entry to the whole sub-folder tree.


Report Offensive Follow Up For Removal







Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: htaccess 1 only

Comments:

 


  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 
Data Recovery Software




How often do you use Computing.Net?

Every Day
Once a Week
Once a Month
This Is My First Time!


View Results

Poll Finishes In 3 Days.
Discuss in The Lounge