My current urls look like this [mysite]index.php/[rest of the slug].
I want to strip index.php from these urls.
mod_rewrite
first of all you have to on the apache server rewrite engine on.this link will help you for that
http://www.anmsaiful.net/blog/php/enable-apache-rewrite-module.html
RewriteEngine On
RewriteBase /your_folder_name/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
this will be your .htaccess file. now try it .this setting works for me.