📅  最后修改于: 2022-03-11 14:54:04.782000             🧑  作者: Mango
function Redirect($url, $permanent = false)
{
header('Location: ' . $url, true, $permanent ? 301 : 302);
exit();
}
Redirect('http://example.com/', false);