The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

password protecting folders problem

Discussion in 'General Discussion' started by geraintw1uk, Feb 4, 2006.

  1. geraintw1uk

    geraintw1uk Guest

    hi all.

    I am trying to password protect folders on cpanel, it works but it makes me login twice.

    The first time i log in it does nothing and askes me to log in again, this time it works and lets me in, but i have to log in twice every time for it to work.

    some one suggested put a trailing slash at the end of the url but this does not help and still makes me log in twice.

    has anyone got any advise on this, can anyone help me with this.


  2. madaboutlinux

    madaboutlinux Well-Known Member

    Jan 24, 2005
    Likes Received:
    Trophy Points:
    Is there any password protected parent directory as well ?
  3. webignition

    webignition Well-Known Member

    Jan 22, 2005
    Likes Received:
    Trophy Points:
    I find that something similar happens with a specific account. I'll explain what goes on and perhaps you can relate that to your situation.

    I have an account for and a second account under the domain, the latter being a development version of the former. is not a subdomain on the account for but a completely independent cPanel account. The entirety of is password protected.

    When visiting I get prompted for a username and password. I enter it and then get asked for the same username and password again. When asked a second time, I notice that the URL has changed from to

    In more straightforward terms, it goes something like this:

    1. Browse to
    2. Enter valid username and password
    3. Get redirected to (that's just the way it works, not something I've chosen to do)
    4. Enter same valid username and password
    5. Can happily browse around and

    The way I see it is that the username/password is accepted for but is not valid for, hence it gets asked for again.

    I imagine that the username/password is asked for again as is treated as a different domain from

    Why this happens, I don't really know.
  4. geraintw1uk

    geraintw1uk Guest

    Password protect folders

    Yes that is similar to what i am getting.

    lets say my domain is, I have a forum on my domain at

    i have a sub domain created which goes to

    i then enter
    enter user/password
    url changes to
    enter user/pass again.
    then it goes to forum

    I have also tried going directly to by entering this in the address bar
    enter user/pass
    url in address bar stays on
    enter user/pass again
    goes to forum

    i have also tried using the sub domain url by entering but i still get the same result needing to enter user/pass twice.

    i have also tried deleting the sub domain and trying this without the domain but again same results.

    as i am using front page for my website i have tried uninstalling and reinstalling the front page extensions but again same results.

    any help or suggestions would be great.


  5. GeekPatrolMille

    GeekPatrolMille Well-Known Member

    Mar 12, 2004
    Likes Received:
    Trophy Points:
    McKinney, Texas, USA
    I also have the same problem. I can remove and re-install the front page extensions and it appears to work correctly, for a while... I am still testing but my latest attempt in solving is to remove all the backup .htaccess files from the directory in question and all parent directories. These would be the .htaccess.######### files. This also seems to work. Time will tell...


Share This Page