applecrusher
asked on
Redirection and Internet Explorer 4
Hi there....
I was wondering why Internet Explorer does not respond to normal redirections. As in,
Location: http://server.net/
It either returns a message saying that it cannot retrieve it due to security reasons or produces a HTML page where you have to click a link to get redirected. Is there a way around this?
I was wondering why Internet Explorer does not respond to normal redirections. As in,
Location: http://server.net/
It either returns a message saying that it cannot retrieve it due to security reasons or produces a HTML page where you have to click a link to get redirected. Is there a way around this?
ASKER
Hi.
I use something like:
#!/usr/bin/perl
print "Location: http://www.aunic.net/\n\n";
But this doesn't work. I get the same problems as above.
I use something like:
#!/usr/bin/perl
print "Location: http://www.aunic.net/\n\n";
But this doesn't work. I get the same problems as above.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
#!/usr/bin/perl
print "Location: ";
if ($ENV{"REMOTE_HOST"} eq "www.bogus.com"){
print "http://www.bogus1.com/index.html\n\n";
}
else{
print "http://www.bogus2.com/index.html\n\n";
}