【发布时间】:2013-11-02 23:52:59
【问题描述】:
我正在使用 Kohana 框架设置我的新 Web 应用程序。
我正在使用 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 路由
Route::set('default', '(<controller>(/<action>(/<id>)))')->defaults(
array(
'controller' => 'welcome',
'action' => 'index',
));
【问题讨论】:
-
您是否正确设置了 bootstrap.php 中的
base_url(以及 .htaccess 中的RewriteBase)? -
你能告诉我这些应该是什么吗?