geraintw1uk said:
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.
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.