I'm using Codeigniter framework, i test the website on shared hosting and it work fine with .htaccess. but when i upload it to an other server who has Nginx, i can't remove index.php. I tried almost all googel's two first pages i had the same result none of them worked for me, i want to remove index.php from URL. this is the htaccess that worked for me.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
i want the corespond of this htaccess in nginx.config. i don't know what's the problem.