using header in link in php code example
Example 1: how to redirect with php
<?php
header("Location: (redirect url)");
?>
Example 2: php redirect
header("Location: http://example.com/myOtherPage.php");
die();
<?php
header("Location: (redirect url)");
?>
header("Location: http://example.com/myOtherPage.php");
die();