请高手帮我写一个PHP页面跳转代码

来源:百度知道 编辑:UC知道 时间:2024/05/29 08:22:56
我想把首页跳转到另一个页面,首页不要了!请问怎样写?

上面那位答的就是正确的
在首页里加这句就可以了
<?php
header('location:http://你要跳转的网站');

//……你以前的代码;

?>

header('Location: http://www.example.com/');

把你要跳的url写在Location后面

百度一下,你就知道。

vfdh u