Actually the old .htaccess had a bug. The "All" keyword grants all options, essentially overriding the -Indexes which is supposed to suppress directory indexes. The -Indexes keyword alone will only suppress directory indexes. The problem seems to be in your server setup. The index.php should be defined as a default document, not as a directory index. Therefore trying to access http://www.example.com (where www.example.com is your site's domain) should be understood by Apache as a request to access the default document (index.php) in the site's root, NOT an attempt to generate a directory index. Please contact your host. Our bug fix exposed a problem in their setup.
FYI, the
Apache documentation of the core module very eloquently describes why our previous .htaccess had a bug and why the current version fixes it. I quote:
Normally, if multiple Options could apply to a directory, then the most specific one is used and others are ignored; the options are not merged. (See how sections are merged.) However if all the options on the Options directive are preceded by a + or - symbol, the options are merged. Any options preceded by a + are added to the options currently in force, and any options preceded by a - are removed from the options currently in force.
Warning
Mixing Options with a + or - with those without is not valid syntax, and is likely to cause unexpected results.
See the warning? This is what the previous version did. It mixed Options with a - and those without a +/- which is not valid syntax and was likely to cause unexpected results. We have discovered that the "unexpected result" was our rule having the opposite effect of what it was supposed to do.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!