The simplest method of php redirection, friends in need can refer to it.
PHP Redirect <?php //method1 header("Location: index.php"); //method 2 echo '<scrīpt type="text/javascript"> window.location = "index.php"; </scrīpt>'; //method 3 echo "<META HTTP-EQUIV="Refresh" CONTENT="0; URL=index.php">"; ?> Copy after login For php redirection, you can also refer to the following articles: Instance analysis of apache php 301 redirect How to implement php 301 redirect How to implement 301 redirect in php Three methods about php page redirection |