codeigniter only works with index.php in the url


I have a CI installation which has routes


my ci installation resides inside

when i goto this url , it routes to but it shows

The requested URL / was not found on this server.

but when i manually insert index.php

then it opens.

What can be the issue?I have configured htaccess.

This ci installation was in another server and I transafered it to this new server.I kept the base url blank.

htaccess code is

RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

This ci installation was in another server and I transferred it to this new server.

Based on it working on another server, it appears the new server does not have the AllowOverride Apache setting configured to enable the htaccess, meaning your htaccess is disabled or ignored. Or the new server is a non-Apache web server, which doesn't recognize htaccess at all.