src/Routing/Route/WasabiRoute.php
protected function _redirect($redirectUrl, $statusCode = 301)
    {
        header('HTTP/1.1 ' . $statusCode);
        header('Location: ' . Router::url($redirectUrl, true));
        exit(0);
    }
protected function _redirect($redirectUrl, $statusCode = 301)
    {
        header('HTTP/1.1 ' . $statusCode);
        header('Location: ' . Router::url($redirectUrl, true));
        exit(0);
    }
protected function _redirect ( $ redirectUrl , $ statusCode = 301 ) { header ( 'HTTP/1.1 ' . $ statusCode ) ; header ( 'Location: ' . Router :: url ( $ redirectUrl , true ) ) ; exit ( 0 ) ; }
Redirect to the given url.

@param string $redirectUrl The url to redirect to.
@param int $statusCode The http status code.
@return void
Redirect to the given url .