Forum Moderators: phranque

Message Too Old, No Replies

Subdomains and Password Protection

Stop prompting me darn it!

         

Chris_m

10:25 pm on Jan 17, 2004 (gmt 0)

10+ Year Member



Hi,

I have an addon domain at addon.domain.com with the domain xyz.com pointing to the addon domain. Inside xyz.com I have a password protected area.

Everything works properly but.. when I go to xyz.com/protected I get prompted for a password twice. Once of xyz.com and a second for addon.domain.com.

I use this in my htaccess to stop the browser from showing addon.domain.com:

RewriteEngine On
# Redirect all URIs as
# addon.domain.com
# to
# www.xyz.com
RewriteCond %{HTTP_HOST} ^(www\.)?addon.domain.com$ [NC]
RewriteRule ^(.*)$ http://xyz.com/$1 [R=301,L]

Which works fine but how can I stop it from repeatedly prompting me to enter a password?

Chris_m

8:23 am on Jan 19, 2004 (gmt 0)

10+ Year Member



No one has a clue? Or is it normal?

thehittmann

10:15 am on Jan 19, 2004 (gmt 0)

10+ Year Member



without prior knowledge of this sort of thing id have to say it sounds about right. You want bot domains pw protected incase traffic comes to either one. and if you log onto one, which redirects you to another pw protected site it seems logical that you would have to log on again.