Q:

CodeIgniter's "Removing the index.php file" is not working when CI is inside a subfolder

I am using CI 2.1.4 (trying to use) when I edit .htaccess to remove the index.php from my url it doesn't work. My project is inside a subfolder:
http://myserver.dev/project/
I've set the base_url removed the index.php from $config['index_page'] = '' and pasted the exact code form http://ellislab.com/codeigniter/user-guide/general/urls.html:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

Tried some solutions (some using RewriteBase) from stackoverflow.com fellows, but, it doesn't work.
How can I fix that?

A:

I dont think it's because of the .htaccess, this works for me and not because of the subfolder either.
This is an example of the .htaccess I'm using :
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^/(index\.php|assets/|humans\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Set the right url in the base_url or this :
$config['base_url']     = 'http' . ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 's' : '')
                  .'://'.$_SERVER['HTTP_HOST'].str_replace('//','/',dirname($_SERVER['SCRIPT_NAME']).'/');

And obviously :
$config['index_page'] = '';

With this, it works for me...

