void HTTP::redirect (
This function redirects the client. This is done by issuing
Location: header and exiting.
The HTTP package is deprecated. Use HTTP2::redirect instead.
Redirecting to another site
This will redirect the client to
The method will take care of adding the right hostname as
required by RFC 2616.
string $url - the new URL, where
to client should be redirected to.
This function can be called statically.
Avoid sending any kind of data to the client before calling redirect().
The location header requires an absolute URL. If not given,
redirect() tries to build one from
$url. So if the redirect fails,
set the absolute URL manually as argument.