各位客官,欢迎光临小弟网站:maliweb.top
thinkphp6多应用模式下访问路由显示路由不匹配的解决方法:
问题描述:
[0]RouteNotFoundException in Route.php line 799
当前访问路由未定义或不匹配
if (false === $result && !empty($this->cross)) {
// 检测跨域路由
$result = $this->cross->check($this->request, $url, $completeMatch);
}
if (false !== $result) {
return $result;
} elseif ($this->config['url_route_must']) {
throw new RouteNotFoundException();
}
return $this->url($url);
}
/**
* 获取当前请求URL的pathinfo信息(不含URL后缀)
* @access protected
* @return string
解决方法:
(1)方法一:
在public目录下,复制index.php文件,针对每一个应用分别新建文件:例如:
现有admin应用,新建一个admin.php文件,复制index.php的内容然后修改其中的
$re