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.

    Thanks

    Geraint.
     
  2. madaboutlinux

    madaboutlinux Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    1,052
    Likes Received:
    2
    Trophy Points:
    38
    Location:
    Earth
    Is there any password protected parent directory as well ?
     
  3. webignition

    webignition Well-Known Member

    Joined:
    Jan 22, 2005
    Messages:
    1,880
    Likes Received:
    0
    Trophy Points:
    36
    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 example.com and a second account under the domain dev.example.com, the latter being a development version of the former. dev.example.com is not a subdomain on the account for example.com but a completely independent cPanel account. The entirety of dev.example.com is password protected.

    When visiting http://dev.example.com/ 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 http://dev.example.com/ to http://www.dev.example.com/.

    In more straightforward terms, it goes something like this:

    1. Browse to http://dev.example.com/
    2. Enter valid username and password
    3. Get redirected to http://www.dev.example.com (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 http://dev.example.com and http://www.dev.example.com

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

    I imagine that the username/password is asked for again as www.dev.example.com is treated as a different domain from dev.example.com.

    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 www.mydomain.co.uk, I have a forum on my domain at www.mydomain.co.uk/forum.

    i have a sub domain created www.forum.mydomain.co.uk which goes to www.mydomain.co.uk/forum

    i then enter www.mydomain.co.uk/forum
    enter user/password
    url changes to http://www.mydomain.co.uk/forum/
    enter user/pass again.
    then it goes to forum

    I have also tried going directly to http://www.mydomain.co.uk/forum/ by entering this in the address bar
    enter user/pass
    url in address bar stays on http://www.mydomain.co.uk/forum/
    enter user/pass again
    goes to forum

    i have also tried using the sub domain url by entering www.forum.mydomain.co.uk 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.

    Thanks

    Geraint.
     
  5. GeekPatrolMille

    GeekPatrolMille Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    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...

    -greg
     
Loading...

Share This Page