1 2 3 4 5 6 7 8 9
<?php /* Redirect to a different page in the current directory that was requested */ $host = $_SERVER['HTTP_HOST']; $uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\'); $extra = 'getAgency.php'; header("Location: http://$host$uri/$extra"); exit; ?>