提问人:user3822492 提问时间:7/21/2020 更新时间:7/5/2021 访问量:159
“找不到与 URI 匹配的路由:xxxxx/index.php”
"Unable to find a route to match the URI: xxxxx/index.php"
问:
我正在尝试在localhost中使用一个旧项目,它基于kohana 3.1.1.1
当我尝试输入索引.php时,我得到: “找不到与 URI 匹配的路由:[项目名称]/index.php”
我是一个使用框架的菜鸟,但我知道 PHP。有没有办法解决它?
谢谢大家。
答:
0赞
bato3
7/5/2021
#1
您需要对 2 个文件进行更改:
.htaccess
application/bootstrap
, Kohana::init 部分
Kohana::init(array(
'base_url' => '/kohana/',
'index_file' => false,
));
评论