[ciapug] header redirects in IE

ciapug@cialug.org ciapug@cialug.org
Wed, 04 Jun 2003 20:08:01 +0000


I'm trying to do redirects with php 4.2.0, but IE is acting funny.  All of the
pages in the admin area have this code to make you log in if you haven't:
if (!$_SESSION["s_isadmin"]) {
	header("location: login.php");
}

This works great in NS4.8 and mozilla 1.3, but IE 6 SP1 redirects to the
non-admin login page (../login.php, not ./login.php).  Anyone know why?  If I
change the pagename to something else (like Xlogin.php), I get a 404, I'm
assuming because there is no ../Xlogin.php.  I saw some issues with IE 5.5 on
php.net, but none of those fixes helped.  Any thoughts?  A non-relative address
doesn't work either.