<?php
$map = [
    /*  路由表，新增的话向下复制一行。
        格式：'入口域名URL后缀A'    => '这里修改为你的目录地址B',
        例：  'a' => 'https://www.cfmm666.com',
        假设当前网站域名为：https://www.gerryfire.com，当访问https://www.gerryfire.com/a时自动跳转至https://www.cfmm666.com
        注：每行以英文“,”结尾，不能省。
    */
    'a'    => 'http://radar.pupcheat.com/valorant/radar?ip=fzradar.com&port=7777&password=',

];

$path = trim($_SERVER['REQUEST_URI'], '/');

if (isset($map[$path])) {
    header("Location: {$map[$path]}", true, 302);
    exit;
}

// 默认跳转你的主页
header("Location: http://radar.pupcheat.com/valorant/radar?ip=fzradar.com&port=7777&password=", true, 302);
exit;
?>