1//PHP redirect
2header("Location: https://www.codegrepper.com/my-redirect-page.php");
3die();
4
1function location($where){
2 echo '<script>window.location.href="'.$where.'"</script>';
3}
4
5
6location("https://youtube.com");
1header("location: THE LOCATION"); //"THE LOCATION", put in a URL or directory to redirect to. For example, header("location: https://google.com/"); or header("location: ../../images/dog/");