加个跳转延迟2秒session_start;if !isset$_SESSIONredirected $_SESSIONredirected = true; $current_url = http $_SERVERHTTP_HOST $_SERVERREQUEST_URI; $new_url = httpwwwhostgay $_SERVERREQUEST_URI; hea
session_start(); if (!isset($_SESSION['redirected'])) { $_SESSION['redirected'] = true; $current_url = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; $new_url = "http://www.host.gay" . $_SERVER['REQUEST_URI']; header("Refresh: 2; URL=$new_url"); echo "You will be redirected to the new website in 2 seconds..."; exit(); } else { // 已经跳转过,不再跳转 }
原文地址: https://www.cveoy.top/t/topic/cG8M 著作权归作者所有。请勿转载和采集!