how to redirect a site with php code example
Example 1: php redirect
header("Location: http://example.com");
die();
Example 2: how to redirect to another page in php
<?php header("Location: anotherDirectory/anotherFile.php"); ?>
header("Location: http://example.com");
die();
<?php header("Location: anotherDirectory/anotherFile.php"); ?>