note 20573 added to function.header

From: Date: Mon, 08 Apr 2002 17:11:28 +0000
Subject: note 20573 added to function.header
Groups: php.notes 
Request: Send a blank email to php-notes+get-28967@lists.php.net to get a copy of this message
For example, on http://www.yourdomain.com/path1/file.php If you use: $url = "http://www.yourdomain.com/path2/file.php"; header("Location: $url"); With certain older versions of IE, the browser redirects to http://www.yourdomain.com/path1/www.yourdomain.com/path2/file.php So, instead you can use 301 or 302 with the location, example: header ('HTTP/1.0 301 Moved Permanently'); header("Location: $url"); exit; Venkatesh -- http://www.php.net/manual/en/function.header.php http://master.php.net/manage/user-notes.php?action=edit+20573 http://master.php.net/manage/user-notes.php?action=delete+20573 http://master.php.net/manage/user-notes.php?action=reject+20573

« previous php.notes (#28967) next »