Оформление
LocalRedirect(SITE_DIR, false, '301 Moved permanently');
function LocalRedirect( $url, $skip_security_check = false, $status = "302 Found" ): void
$url
$skip_security_check
$status