Htaccess:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
And in your applications/config/config.php
$config['base_url'] = 'http://www.yourwebsite.com'; //url to your project
$config['index_page'] = ''; //Needs to be empty