if else redirect php code example
Example 1: redirect php
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
Example 2: php redirect
header("Location: http://example.com/myOtherPage.php");
die();
< ?php header("Location: http://www.redirect.to.url.com/"); ?>
header("Location: http://example.com/myOtherPage.php");
die();