joomla-cms
joomla-cms copied to clipboard
htaccess redirect rules
The Brotli message on Joomla! 4.4.4 and the .htaccess code in htaccess.txt is wrong. It's missing the L flag in the RewriteRule lines. It accidentally works on the core .htaccess only because there are no other RedirectRules after it. If someone adds RedirectRule lines, as is common, the site might break.
https://github.com/joomla/joomla-cms/blob/fcf0ad1105624198f1f4a3be512f4968b54e09c8/htaccess.txt#L161-L162
Each of these rules is missing the L flag.
The [L] flag causes mod_rewrite to stop processing the rule set. In most contexts, this means that if the rule matches, no further rules will be processed. Use this flag to indicate that the current rule should be applied immediately without considering further rules.
In the core htaccess file it fortunately does not cause any problems but if you are using your own htaccess file (eg Master Htaccess and follow the advice in the post installation messages and add the lines then this may cause problems.
https://github.com/joomla/joomla-cms/blob/fcf0ad1105624198f1f4a3be512f4968b54e09c8/administrator/language/en-GB/com_admin.ini#L249
Does that mean you need to make changes to the htaccess file?