Actually that was the first thing I did.
I already replaced “index.php” in the .htaccess file with my own index page name.
Now if I leave the index custom name in the EE control panel everything works just fine except that links created by EE with segments, links in the source code to CSS files, and actually any link created by EE displays the filename like this:
filename.php/segment1/
If I remove it from there (like you would if it was named index.php) then it breaks the templates generated by EE and other stuff.
You could say why not just use the default index.php right?
Well, my index.php is already in use by another content system, a billing system and I cannot replace it. This is why I decided EE should (and can´t) use the name index.php but needs another name for this.
Now this work ok and .htaccess removes the filename in the url but of course every link created by EE contains the file name as the index name is listed under the control panel in “Name of your site’s index page”
It seems this setup EE does not like. You can only leave that field blank if the file name defaults to index.php. Can someone confirm this?
Because all my links created by EE are ugly, even when I can browser the urls just fine without using the index filename as the .htaccess makes its magic. The problem is EE which does not let me leave that setting blank in the control panel.
This is a HUGE problem in my case to the point I could decide not to use EE at all.
My current root index.php is encoded, so its needs IonCube. I tried to import this into a EE template and them make this as default homepage, then I could replace the default EE index with it, and use this template but of course this does not work. It gives errors as this ioncube PHP data cannot be parsed via ExpressionEngine and needs to be parsed directly. So the only solution for me was to actually rename the EE index.php to something else.
Now why this is a problem? Because all the navigation which is generated by EE display the file name and Google will not index all the urls with this which is plain SEO bad but it also looks visually bad for visitors.
I really need ExpressionEngine not to use the index.php file at all, and leaving this setting blank breaks my site. The .htaccess rules work just fine with any filename, but EE does not like the index.php setting to be left blank if the name is not actually index.php
EE assumes your index file name is index.php when you set this to blank.