How to remove codeigniter index.php

The information provided in the tutorial in codeigniter 2 seems to give several people problems when trying to remove the index.php from the urls.
the following code:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L] 

Should be put in a .htaccess file in the root of the codeigniter installation along with the index.php, application and system folders. Read More