When I go to http://example.com/clients , Laravel response 404 Error , but when I go to http://example.com/clients/index , Laravel render the right view and run the index action.
My .htaccess file :
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
My controller :
<?php
class Clients_Controller extends Base_Controller
{
public function action_index()
{
return View::make('clients.clients');
}
}
My Routes.php
Route::controller(Controller::detect(),'home.index');
I removed :
Route::controller(Controller::detect(),'home.index');
and replace it by :
Route::controller('clients');