我正在使用Kohana框架设置我的新Web应用程序。在Kohana中开发路由
我使用MAMP,因此该应用位于htdocs
文件夹,这个结构:
---htdocs
--foo
-application
观看http://localhost:8888/foo/
Kohana_HTTP_Exception[ 404 ]: The requested URL foo was not found on this server.
当bootstrap.php
的路线是我收到此错误默认Kohana one
Route::set('default', '(<controller>(/<action>(/<id>)))')->defaults(
array(
'controller' => 'welcome',
'action' => 'index',
));
你在bootstrap.php(和.htaccess中的'RewriteBase')中设置了base_url吗? – kero
你能告诉我这些应该是什么吗? –