There was a problem with the project routing on the hosting.

Hosting - Apache / 2.4.10 (Debian) Server project folder - html / bdpn / ajax-new / old-php-layer /

The project on Kohana 3.1.4, when the project is launched, only the default route is working, when accessing the rest of the paths they are not displayed, the message The requested URL / html / bdpn / ajax-new / old-php-layer / test is found. server enter image description here

enter image description here

What could be the problem? The same project placed on another hosting where the paths work (with the amendment that I changed base_url and registered another path in RewriteRule), I have a suspicion that additional configuration is needed in the .htaccess file or in the php server settings.

  • text information is much more productive to share in the form of text, and not as a picture. Please replace the images with the text by clicking edit below the question text. - aleksandr barakin

1 answer 1

In the route, you need to specify not the name of the action, but the essence of link building, that you will enter only action without a controller. And in defaults you specify the controller with which you work, and you need to specify an array of valid actions.

Route::set('auth', '<action>',array('action'=>'(login|logout)')) ->defaults(array( 'controller' => 'Auth', )); 

The truth is that in version 3.3 it works, I'm not sure that in 3.1 it is the same.