Support

Admin Tools

#18890 403 error after update 2.60

Posted in ‘Admin Tools for Joomla! 4 & 5’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

Joomla! version
n/a
PHP version
n/a
Admin Tools version
n/a

Latest post by nicholas on Wednesday, 22 January 2014 16:59 CST

eric.mennier
 After update 2.60, when i ant to modify something in htaccess rules, i have a 403 error in the site and admin.
When i compare the generated .htacess i found a difference between the two version with the same parameters.

In the old version i have this line

##### No directory listings -- BEGIN
IndexIgnore *
Options All -Indexes
##### No directory listings -- END


In the new version i have this line

##### No directory listings -- BEGIN
IndexIgnore *
Options -Indexes
##### No directory listings -- END


In fact the all has disapeared. If i had it manually, the site is OK.

I think it's au bug in this version.
I reinstall the component and i have the same problem.
Thanks.

nicholas
Akeeba Staff
Manager
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!

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!