php go to mainpage code example Example: php go to another page <?php header("Location: anotherDirectory/anotherFile.php"); ?>