PDA

View Full Version : Location: and .htaccess


palmatec
01-13-2004, 05:35 AM
Hello,
I am trying to use the "location:" command to redirect users to a htaccess protected directory after successful login. Once the
Username and password is cleared by the script, then...

print "Location: http://uswer:password\@www.domain.net/private_directory\n\n";

The script works fine but i still get a popup window asking for the login information.

ACJavascript
01-28-2004, 03:18 PM
You still get the pop up becuase htaccess never cleared the user. Your script did but it didn't.

palmatec
01-28-2004, 06:19 PM
I am using "redirect" command instead and it is working.

print "Refresh:1; URL=http://$user\:$password\@www.website.com/protected_directory\n\n";

After the one second delay it opens the new page perfectly.

Thanks!