How to redirect to a php page?

by wilmer.lemke , in category: Third Party Scripts , a month ago

How to redirect to a php page?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by deron , 25 days ago

@wilmer.lemke 

To redirect to a PHP page, you can use the following code in your PHP file:

1
2
header("Location: page.php");
exit();


This code will redirect the user to the "page.php" file. Make sure to use this code before any other output is sent to the browser, as headers must be sent before any content. Also, ensure that there is no whitespace or any other output before the header function.