protected function redirect($url) { header('HTTP/1.1 307 Temporary Redirect'); header('Location: ' . $url); }