function __construct($code, $uri) { parent::__construct($code); $scheme = isset($_SERVER['HTTPS']) ? 'https' : 'http'; $server = $_SERVER['SERVER_NAME']; header("Location: {$scheme}://{$server}{$uri}"); }
function __construct($code, $uri) { parent::__construct($code); $scheme = isset($_SERVER['HTTPS']) ? 'https' : 'http'; $server = $_SERVER['SERVER_NAME']; header("Location: {$scheme}://{$server}{$uri}"); }