BlogTech header(php) By techsupport May 22, 2016 1 Min Read Comments Off on header(php) /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER[‘HTTP_HOST’]; $uri = rtrim(dirname($_SERVER[‘PHP_SELF’]), ‘/\\’); $extra = ‘mypage.php’; header(“Location: http://$host$uri/$extra”); exit; more