D
D
Dima2014-12-22 15:37:29
Kohana
Dima, 2014-12-22 15:37:29

Kohana 3.3 routing problem loading only start page?

Good afternoon! I have such a problem on a local server, the site on Kohana 3.3 works well, no problems, but when transferring to hosting, I ran into a problem. For each hosting address except default, it shows "The requested URL /page was not found on this server."

Route::set('dashboard', '(dashboard(/<action>(/<id>)))')
   ->defaults(array(
      'directory' => 'dashboard',
      'controller' => 'dashboard',
   ));

for example, at this address " site.ru/user/login " on the local server everything works as it should, but on the hosting it works only if
Route::set('default', '(dashboard(/<action>(/<id>)))')

I spent several hours and checked all the names and directories and did not figure out what the problem was ..

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dima, 2014-12-23
Raduk @DimaRaduck91

Problem solved! The matter is that my .htaccess on a hosting was ignored.

M
maxclax, 2014-12-22
@maxclax

.htaccess uploaded?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question