Support

Admin Tools

#33852 Auto-update .htaccess after Joomla update

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 on Saturday, 07 November 2020 01:17 CST

bradymc

After updating Joomla, there are occasional post-installation messages that are suggested to update .htaccess manually. The latest message from 3.9.21 to 3.9.22 was...

==========

.htaccess Update Concerning Directory Listings

Since version 3.9.22

Before 3.9.22 the default htaccess.txt file contained erroneous code meant for disabling directory listings. The security team recommends to manually apply the necessary changes to any existing .htaccess file, as this file can not be updated automatically.

The old code:

<IfModule autoindex>
  IndexIgnore *
</IfModule>

The new code:

<IfModule mod_autoindex.c>
  IndexIgnore *
</IfModule>
==========

I assumed the .htaccess Maker would take care of those things for me, even if it required waiting for the next AdminTool update for it to do so. Is that the case? Or do I need to be adding these things into .htaccess manually?

nicholas
Akeeba Staff
Manager

The .htaccess Maker never included the erroneous code. Disabling directory indices was an option that you could toggle manually, depending on what is available on your server. As a result we ever had to wrap it in an IfModule statement.

Regarding the other post-installation messages about .htaccess changes, we are glad to see that the Joomla project finally caught up with approximately 1% of the improvements to the standard .htaccess we have been adding to our clients' sites through .htaccess Maker for over 6 years. Better late than never.

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!

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

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!