htaccess password protection is protecting TOO MUCH

Discussion in 'Apache' started by Darden12, Aug 23, 2010.

  1. #1
    I have the following lines in my .htaccess file in a sub-directory. This is the only .htaccess password protection I have in place on my site.

    The problem is: I am being prompted for a password when I try to access pages on my MAIN directory.

    How can that be? Again, the htaccess with the lines that follow is in a SUB directory.

    AuthName "Restricted Area" 
    AuthType Basic 
    AuthUserFile whatever/.htpasswd 
    AuthGroupFile /dev/null 
    
    PHP:
    Thanks!
    Brian
     
    Darden12, Aug 23, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    Is there any redirection set in the .htaccess of the main domain directory? Can you paste the contents of it? And what is the control panel you are using?
     
    madaboutlinux, Aug 24, 2010 IP
  3. TheDataPlanet.com

    TheDataPlanet.com Well-Known Member

    Messages:
    503
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    108
    #3
    You may have a web page asset such as an image or something in the sub-directory yet used on the homepage.
     
    TheDataPlanet.com, Oct 3, 2010 IP