索引页面出现404错误

时间:2022-10-09 18:39:26

I keep getting this error when trying to go the index page in kohana

当我尝试去kohana的索引页面时,我一直收到这个错误

Kohana_HTTP_Exception[ 404 ]:The requested URL localwebsite/admin was not found onthis server.

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

SYSPATH\classes\Kohana\Request\Client\Internal.php [ 79 ]:

SYSPATH \ classes \ Kohana \ Request \ Client \ Internal.php [79]:

   if ( ! class_exists($prefix.$controller))
     {
      throw HTTP_Exception::factory(404,'The requested URL :uri was not found on this server.',
      array(':uri' => $request->uri()))->request($request);
     }
     // Load the controller using reflection
     $class = new ReflectionClass($prefix.$controller);

SYSPATH\classes\Kohana\Request\Client.php[114]:

SYSPATH \类\ Kohana的\请求\ Client.php [114]:

    Kohana_Request_Client_Internal->execute_request(args)

SYSPATH\classes\Kohana\Request.php [ 990 ]:

SYSPATH \ classes \ Kohana \ Request.php [990]:

Kohana_Request_Client->execute(arguments)

DOCROOT\index.php [ 118 ]:

DOCROOT \ index.php [118]:

Kohana_Request->execute() 

1 个解决方案

#1


-1  

Kohana is a very robust framework and the number one rule is to not go through the system or modules folders!

Kohana是一个非常强大的框架,头号规则是不通过系统或模块文件夹!

You shouldn't ever be blaming issues like this on the framework but instead check your routes/start a new project to find the problems that way.

您不应该在框架上指责这样的问题,而是检查您的路线/启动一个新项目以找到问题。

Stay in the application folder because as soon as you start messing with /system and /modules you cannot upgrade kohana :(

留在应用程序文件夹中,因为一旦你开始搞乱/ system和/ modules你就无法升级kohana :(

#1


-1  

Kohana is a very robust framework and the number one rule is to not go through the system or modules folders!

Kohana是一个非常强大的框架,头号规则是不通过系统或模块文件夹!

You shouldn't ever be blaming issues like this on the framework but instead check your routes/start a new project to find the problems that way.

您不应该在框架上指责这样的问题,而是检查您的路线/启动一个新项目以找到问题。

Stay in the application folder because as soon as you start messing with /system and /modules you cannot upgrade kohana :(

留在应用程序文件夹中,因为一旦你开始搞乱/ system和/ modules你就无法升级kohana :(