redirect()
redirect(String $url, Array $opts = array())
Redirect to another page. This ends the current PHP process.
Parameters
| String | $url | The URL to redirect to. |
| Array | $opts | Options: 'relative' If True, the passed URL is actually a path. 'full' If True, the passed URL is a full URL. The above two options are mutually exclusive and do the exact opposite. If neither option is set, the URL will be checked for the existence of a colon (':') character, which will determine if it is assumed to be a full URL or a relative URL. If relative is determiend to be true, the following options are added: 'ssl' If True, force the use of SSL on the site URL. 'port' If set, use this port on the site URL. See the site_url() function for details on how 'ssl' and 'port' work. |