JApplicationCms::redirect
Redirect to another URL.
If the headers have not been sent the redirect will be accomplished using a "301 Moved Permanently" or "303 See Other" code in the header pointing to the new location. If the headers have already been sent this will be accomplished using a JavaScript statement.
Signature
public function redirect(string
$url,
[boolean
$moved = false] )
Parameters
-
$url
- The URL to redirect to. Can only be http/https URL
-
$moved
- True if the page is 301 Permanently Moved, otherwise 303 See Other is assumed.
Returns
- void