Htaccess in subfolder

Hi :slight_smile:

I’m using Slim 2, and I can access to my webservice using this url : http://url.com/subfolder/index.php/login
My server contains more that one website, so I have to use subfolders.

I just want to remove index.php from url.
I tried to use that code in htaccess, but do not works :

RewriteEngine On
RewriteBase /sufolder/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^index.php$1 [NC,L]

Thanks.

did it work if yes what did you write in your .htaccess