Answers for "How do I make a redirect in PHP?"

PHP
28

php redirect

//PHP redirect
header("Location: https://www.codegrepper.com/my-redirect-page.php");
die();
Posted by: Guest on August-06-2019
3

How do I make a redirect in PHP?

header("Location: http://example.com/redirect_page.php");
die(); //Force the script to quit, or you would raise an error...
Posted by: Guest on May-18-2020
1

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/");
Posted by: Guest on January-15-2021

Code answers related to "How do I make a redirect in PHP?"

Browse Popular Code Answers by Language