note 20573 deleted from function.header by sander
| From: | sander@php.net | Date: | Mon, 08 Apr 2002 17:14:37 +0000 |
| Subject: | note 20573 deleted from function.header by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28968@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