Results 1 to 5 of 5

Thread: .htaccess and sub directories

  1. #1
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default .htaccess and sub directories

    Hi

    I have a protected area with .htaccess/.htpasswd etc. I've made it an employee zone so only the staff can get is, however within this area I want to have other areas that are protected from most of the staff members but not all. For some reason I do not seem to be able to get this to work... am I just being dumb or can it not be done this way??

    ===> Employees (restricted access) ".htaccess#1"
    ---> Forms (all access)
    ---> HR (all access)
    ---> Manager Section (all access)

    ---> Area1 (limited access) Fred has access ".htaccess#2"
    ---> Files

    ---> Area2 (limited access) Jane has access ".htaccess#3"
    ---> Files

    ---> Area3 (limited access) Fred & Jane have access ".htaccess#4"
    ---> Files


    Hope it makes sense and you guys can assist as always....
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    From my limited knowledge of .htaccess, it applies to the directory is it in, and any subdirectories.
    So you could limit 'staff' to staff only, 'staff/fred' to fred by having it limited to staff only, and within that folder .htaccess will specify it as only accessible to fred.

    Seems pretty easy.

    However, these things add up, I think. I'm not sure how you would make something within a protected directory not protected, etc.

    I'm not sure about this, but it seems logical.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  3. #3
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Default

    Hi

    This is the problem I have.. the main area is protected (get asked for users name and password etc) however when you go down to a another area which should be protected with another user/pass etc you do not get asked for the logon etc.

    I.E both sections are protected... main areas you and I can get into, sub directory only you can have access to (i.e you have to login to that section again
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yeah, I'm not really sure about more than that.
    I'm pretty sure that .htaccess applies to inner directories, so consider that when figuring out how it works.
    I think someone else can answer this question better than me.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Sep 2004
    Location
    Little Falls, Roodepoort, South Africa
    Posts
    421
    Thanks
    4
    Thanked 1 Time in 1 Post

    Wink

    Resolved.. would anyone believe that it was a config on the IPS's Server!!

    So please ignore this post.....
    Very Best Rgds, Simonf :cool:
    __________________________________
    My Site | E-Mail Me

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •