htaccess文件无法在服务器上工作,并且在localhost上工作时未正确重定向

I am setting up something on my server,

http://adamcyber.net/talentmasterdemo/

If i copy the db and the application and run it to localhost, everything works fine with changing the configurations to the localhost settings like paths and subdirectories. But when i upload it the the server adamcyber.net. The login page works fine, but when i login with the credentials. it goes to infinite loop of redirection. so firefox shows error. What i figured out till now is that it's the htaccess problem, but i am not sure that y htaccess is working on localhost and not working on the server, The is configured to run htaccess properly, so no issues in running htaccess as other sites on the server are properly running htaccess. Below is the htaccess file code.

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

I am stuck here. Any help will be appreciated.

Give this a try

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>