code: public static function redirect($strLocation, $intStatus=303)
  	{
  		$strLocation = str_replace('&amp;', '&', $strLocation);
  		$strLocation = static::replaceOldBePaths($strLocation);
  
  		// Make the location an absolute URL
  		if (!preg_match('@^https?://@i', $strLocation))
  		{
  			$strLocation = Environment::get('base') . ltrim($strLocation, '/');
  		}
  
  		// Ajax request
  		if (Environment::get('isAjaxRequest'))
  		{
  			throw new AjaxRedirectResponseException($strLocation);
  		}
  
  		throw new RedirectResponseException($strLocation, $intStatus);
  	}
docs: Redirect to another page
  
  @param string  $strLocation The target URL
  @param integer $intStatus   The HTTP status code (defaults to 303)