Support

Admin Tools

#40632 Not sure how to respond to update messages to htaccess like with Joomla 4.4.4

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
4.4.4
PHP version
8.1.27
Admin Tools version
7.5.2

Latest post by nicholas on Tuesday, 23 April 2024 14:44 CDT

davedbw

When I updated Akeeba Admin Tools Pro with Joomla 4.4.4 the post-installation message was generated as shown below.  I'm not sure if I should (a) manually make these changes, (b) have Admin Tools recreate .htaccess, (c) assume the Admin Tools update automatically took care of these changes.  Please advise as to the desired option.  Thanks.  Dave Williams

===== post-installation messages

.htaccess Update Brotli Compression

Since version 4.4.4 

Before 4.4.4 the default htaccess.txt did not support Brotli compression. This could result in double compression errors when Joomla is installed on a server that uses Brotli compression. You should manually apply the necessary changes to any existing .htaccess file, as this file can not be updated automatically.

The old code:

RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1]
RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1]

The new code:

RewriteRule "\.css\.gz$" "-" [T=text/css,E=no-gzip:1,E=no-brotli:1]
RewriteRule "\.js\.gz$" "-" [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
Hide this message  Archive  .htaccess Update Concerning Setting the Content-Encoding Header Hide this message  Read Again  Improved Multi-factor Authentication Hide this message  Read Again    

nicholas
Akeeba Staff
Manager

The code suggested by Joomla is wrong. It is missing the L flag in the RewriteRule lines. We had already addressed the problem they just now discovered since 2020 and we rewrote the code for brevity a couple of weeks ago.

Just regenerate your .htaccess file. Do NOT use the code Joomla! suggests, it will break your site.

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!