Using .htaccess, never show index.php
问题 How can I never show index.php? For example, all requests to site.com/index.php/controller are redirected in the browser address bar to site.com/controller ? My current .htaccess removes index.php but when a user directly types site.com/index.php/controller they are still shown that address in the address bar as opposed to site.com/controller RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] NOTE: Before flaming, I have checked lots