php代码跳转页面实现方式

<?php

//重定向浏览器

header("Location: https://www.php.cn/"); // https://www.php.cn/ 是目标URL

//确保重定向后,后续代码不会被执行

exit;

?>