一、使用location对象的href属性
<html>
<head>
<?php
$new_url = "http://".$_SERVER['HTTP_HOST']."/a.php";
echo '<script>location.href="'.$new_url.'";</script>';
?>
</head>
<body>
</body>
</html>
一、使用location对象的href属性
<html>
<head>
<?php
$new_url = "http://".$_SERVER['HTTP_HOST']."/a.php";
echo '<script>location.href="'.$new_url.'";</script>';
?>
</head>
<body>
</body>
</html>