RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f  
RewriteCond %{REQUEST_FILENAME} !-d  
RewriteRule ^(.*)$ index.php?/$1 [L]
# Use PHP 5.4
AddHandler application/x-httpd-php54 .php
Options -Indexes