1.首先建立一个文件夹test,然后建立一个test.php文件
<span style="font-size:14px;"><?php
echo "test";
header("Location:/");</span>
2.运行test.php,可以看到,被重定向到了根目录下的index.html 或 index.php
1.首先建立一个文件夹test,然后建立一个test.php文件
<span style="font-size:14px;"><?php
echo "test";
header("Location:/");</span>
2.运行test.php,可以看到,被重定向到了根目录下的index.html 或 index.php