redirection in php website code example
Example 1: php redirect
//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();
Example 2: redirect in php
header("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/");