我有新下载的cakephp 2.4.1并在core.php中添加了前缀路由
Configure::write('Routing.prefixes', array('admin'));
并在routes.php文件中添加了以下路由
Router::connect('/', array('controller' => 'pages', 'action' => 'display', 'home'));
Router::connect('/admin', array('controller' => 'pages', 'action' => 'index', 'admin' => true));
当我转到localhost / cakephp2.4 / admin时,它会给出
Not Found
The requested URL /cakephp2.4/admin was not found on this server.
我已经检查过core.php有Debug Level 2
Configure::write('debug', 2);
不知道如何解决这个问题。