codeigniter only works with index.php in the url

advertisements

I have a CI installation which has routes

$route['signin']="auth/login";
$route['logout']="auth/logout";
$route['signup']="auth/register";

my ci installation resides inside www.domain.com/app/

when i goto this url , it routes to www.domain.com/app/signin/ but it shows

The requested URL /www.domain.com/app/signin was not found on this server.

but when i manually insert index.php

www.domain.com/app/index.php/signin

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.