"Password Protect Directories" - forced to login twice?

dlevens

Member
Jun 20, 2004
13
0
151
If I password protect a directory in cpanel I am prompted twice to login to that webpage, once for www.domain.com and then again for domain.com without the the www.

If I instead come into the website using domain.com and leave off the www then I am only prompted to login once.

What I want is to tell my host how to fix this so that if I come in from www.domain.com or domain.com that it only prompts me to login once. I had this same problem at my last host and they fixed it on their end but never told me what they did to fix it.

I have a few password protected directories and none of them have any code in them that use www.domain.com or domain.com, they only use /relative links, so I assume the issue is not on my end. Many users leave off the www when going to the sites and some leave it on, which is confusing for them when they have to login twice sometimes and only once other times.

Any help would be appreciated,

Dennis
 

qkslvr

Member
Mar 2, 2003
18
0
151
I am currently having a similar problem. However I dont seem to get any different results with or without the www. in the domain.

Any suggestions from people would be awesome- I am also investigating the problem.

Update:
I now am only getting the 403 error page in most browsers- I am not getting the usual login box. In addition I have cpanel upgraded to WHM 10.1.0 cPanel 10.2.0-S83 and my machine is a RedHat Enterprise 3 i686 - WHM X v3.1.0
 
Last edited:

dlevens

Member
Jun 20, 2004
13
0
151
I thought the same thing, but I have checked numerous times, I have only two images on the site and every link is relative pathing with no http:// or www or domain.com mentioned at all.

Dennis