Home / PHP Tips Generated By ChatGPT / Redirecting with HTTP Headers in PHP Redirect to another URL by setting the Location header. Source Code header("Location: http://www.example.com"); exit;