0
我有bootstrap.php中:PHP Kohana的路由不行
Kohana::init(array(
'base_url' => '/wypoczynek/',
'index_file' => false,
));
Route::set('default', '(<controller>(/<action>(/<id>)))')
->defaults(array(
'controller' => 'home',
'action' => 'index',
));
Route::set('dodaj-obiekt', 'dodaj-obiekt(/<action>(/<id>))')
->defaults(array(
'controller' => 'object',
'action' => 'addObject',
));
與的.htaccess:
RewriteEngine On
RewriteBase /wypoczynek/
<Files .*>
Order Deny,Allow
Deny From All
</Files>
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT]
鏈接:http://domain.pl/wypoczynek做工不錯,但http://domain.pl/wypoczynek/dodaj-obiekt沒有作品。我看到404錯誤頁面,Apache默認404錯誤頁面。哪裏不對?