I think your all setting is good but you doing to misplace your htaccess file go and add your htaccess to your project file
project_folder->htaccess
and add this code to your htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]