e nell .htaccess dove cartella_app è la cartella dell’applicazione nel caso non andasse con un vhost.
ovviamente il mod_rewrite deve essere attivo su apache
RewriteEngine On
#RewriteBase /
RewriteBase /cartella_app
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php/$1 [L,QSA]
#RewriteEngine on
# if a directory or a file exists, use it directly
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
# otherwise forward it to index.php
#RewriteRule . index.php