I've google a lot but I can't find any rule to remove the index.php from both cases:
- domain.com/index.php => domain.com
- domain.com/index.php/other/stuff => domain.com/other/stuff
Here is what I've done so far
RewriteRule .* index.php [L]
RewriteCond %{REQUEST_URI} !(administrator) [NC] #exclude administrator folder
#RewriteRule ^index.php$ /$1 [R=301] #when this is enable work only first case
RewriteRule ^(.*)index.php$ /$1 [R=301,L] #when this is enable work only second case
If I enable both cases all requests are redirected to domain.com
Thanks.