if(isset($_GET['url'])){ $url = $_GET['url']; switch($url){ case 'wangzhe': header('Location: http://pvp.qq.com'); exit(); case '123': header('Location: http://s123.com'); exit(); case '1234': header('Location: http://123.com'); exit(); default: header('Location: http://www.baidu.com'); exit(); } } else { header('Location: http://www.baidu.com'); exit(); }

PHP URL 重定向代码优化 - 简洁高效的 URL 重定向实现

原文地址: https://www.cveoy.top/t/topic/qoZ8 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录