note 96814 rejected from function.header by thiago
| From: | thiago@php.net | Date: | Thu, 18 Mar 2010 02:33:46 +0000 |
| Subject: | note 96814 rejected from function.header by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-167154@lists.php.net to get a copy of this message | ||
Note Submitter: dev at thebat dot net
----
I want to redirect to https:
<?php
/* Redirect to a different page in the current directory that was requested */
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$extra = 'retailusers.php';
header("Location: http://$host$uri/$extra");
exit;
?>
But not work. It hang!