Function redirectURL
General url redirection handler using header()
string |
$url |
A full qualified url |
string |
$statuscode = null |
<p>Default null (no status header). Enter the status header code to send. Currently supported: 200, 301, 302, 401, 403, 404 (more may be added if needed later on) If you need custom headers not supported just set to null and add them separately before calling this function.</p> |
boolean |
$allowexternal = false |
True to allow redirections outside of the current domain (does not cover subdomains!). Default false. |