kernel/core/Controller.php
public function redirect(string $sUrl, int $iHttpCode = 301)
    {
        if ($iHttpCode === 301) { header('Status: 301 Moved Permanently', false, 301); }
        else if ($iHttpCode === 302) { header('Status: Moved Temporarily', false, 301); }

        header('Location: '.$sUrl);
        exit;
    }
public function redirect(string $sUrl, int $iHttpCode = 301)
    {
        if ($iHttpCode === 301) { header('Status: 301 Moved Permanently', false, 301); }
        else if ($iHttpCode === 302) { header('Status: Moved Temporarily', false, 301); }

        header('Location: '.$sUrl);
        exit;
    }
public function redirect ( string $ sUrl , int $ iHttpCode = 301 ) { if ( $ iHttpCode === 301 ) { header ( 'Status: 301 Moved Permanently' , false , 301 ) ; } else if ( $ iHttpCode === 302 ) { header ( 'Status: Moved Temporarily' , false , 301 ) ; } header ( 'Location: ' . $ sUrl ) ; exit ; }
redirection HTTP

@access public
@param  string $sUrl url for the redirection
@param int $iHttpCode code of the http request
@return void
redirection HTTP