I am trying to execute a code in CodeIgniter on my computer under Kubuntu. To access the home ( link ) there is no problem. But when trying to access another URL ( link ) the message appears
"The requested URL / client was not found on this server.".
My .htaccess:
RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
The routes.php file:
$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['cliente'] = 'clientes';
$route['produto'] = 'produtos';
I have the files Clients.php and Produtos.php in the application / controllers folder.
In the file config.php: $config['index_page'] = '';
What is more strange is that to access the home there is no problem. Just give the error when I try any other URL type link .
The controller:
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Clientes extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('ci_sga_model');
$this->load->library(array('session','email'));
}
public function index()
{
$this->load->view('clientes');
}
}