$
c
->send_redirect
(
url
, [
code
, [
entity_body
]] )
Sends a redirect response to the client, with the location
url
, an absolute or a relative URL.
The optional
code
argument should be one of the redirect status codes; the default is
301 Moved Permanently
.
An
entity_body
string can be sent as HTML that informs the user of the redirection.