RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Ana dizine htacess dosyasini oluşturup yukarıdaki kodu yazip yönlendirmeleri routes uzerinden yapabilirsiniz.
Örnek ;


$route[‘anasayfa’] = ‘welcome/index’; //Controller adı/metod adı


//Parametreli Yönledirme
$route[‘haber/(:any)’] =‘welcome/post/$1’];