redirect function doesn't work

the redirect function didn't work for me