RewriteEngine on
RewriteCond $1 !^(index\.php|install\.php|lib|static|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]