By default, the response status code is 301.
If the path is empty, the status code will be 410.
If the permanent flag is set, the status code will be 302.
public urlRedirectAction ( string $path, boolean $permanent = false, boolean $scheme = null, integer $httpPort = 80, integer $httpsPort = 443 ) : |
||
$path | string | The path to redirect to |
$permanent | boolean | Whether the redirect is permanent or not |
$scheme | boolean | The URL scheme (null to keep the current one) |
$httpPort | integer | The HTTP port |
$httpsPort | integer | The HTTPS port |
return | A Response instance |