//输入域名,默认打开前端页面
$the_url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';//判断地址后面部分
$the_url = strtolower($the_url);//将英文字母转成小写
if($the_url=="" || $the_url=="/")//判断是不是首页
{
header('HTTP/1.1 301 Moved Permanently');//发出301头部
header('Location:https://***.****.com/pc');//跳转到网站pc端
exit;
}
输入域名,指定默认打开页面
于 2023-08-07 11:05:36 首次发布