2013-11-28 38 views
0

enter link description here - 是我安装Kohana的地方,但它给出了一个错误。如何在子域上安装kohana?

Kohana_HTTP_Exception [404]:请求的URL /在此服务器上找不到。

在书面只有一个路由(默认)自举:

Route :: set ('default', '(<controller> (/ <action> (/ <id>)))')-> defaults (array (      'controller' => 'page','action' => 'index',));)); 

我安装在本地机器上的应用程序写入(默认情况下也是如此)的htacces - 它的作品完美,没有错误

请帮我

+0

你在bootstrap.php中设置了base_url吗? – kero

回答

0

的“缺省”路由的默认操作是在你的情况“测试”。

我怎么知道? 我在错误页面上点击了其中一个'参数'链接。这是它的一部分:

protected _route => object Route(5) { 
    protected _filters => array(0) 
    protected _uri => string(32) "(<controller>(/<action>(/<id>)))" 
    protected _regex => array(0) 
    protected _defaults => array(2) (
     "controller" => string(7) "welcome" 
     "action" => string(4) "test" 
    ) 
    protected _route_regex => string(95) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" 
} 

该网址http://www.appliedmath.url.ph/welcome/index工作得很好。

Kohana的默认错误页面在开发过程中可能非常有用。去玩一下:点击每个带下划线的文字。