Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

URL for authenticated users in IE error



12:27 am on Aug 19, 2008 (gmt 0)

10+ Year Member

I'm trying to do a redirect to prevent users from having to log in a second time to a htpasswd protected directory.

The following works fine in Firefox, but gives me an error in IE.

Any ideas?

$yourblog ="site.com/".$blog;
$directory = "http://".$user[login].":".$user[pass]."@".$yourblog;
header("Location: $directory");


1:15 am on Aug 19, 2008 (gmt 0)

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 5+ Year Member

>> gives me an error in IE

What is the error that it is giving you? Try echoing out $directory to see if it contains what you want.


1:21 am on Aug 19, 2008 (gmt 0)

10+ Year Member

"Internet Explorer cannot display the webpage"

No error code given.

[edited by: David_M at 1:21 am (utc) on Aug. 19, 2008]


Featured Threads

Hot Threads This Week

Hot Threads This Month