NEWSubscribe to Receive Free E-mail UpdatesSubscribe

How to Redirect page in PHP [Tutorial]

Creating a Redirect Page in PHP is very Easy. In this we use header Function to redirect our page. Let See how to Use

General Syntax for Redirect using Header is:

header('Location: ');

Here Destination url can be changed to the url where you want to redirect you can also create this using variable like:

$url = ''; 
header('Location: '.$url.''); 

$url is variable where you can change the url for destination.

This is Simple Guide how to Redirect Page in PHP