Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1362

General Questions/New to Joomla! 5.x • Re: Some newbie questions... (Serious bug in htaccess)

$
0
0
Hi Pavel,
This problem is still active, but in a weird way - and a bad one at that!

I had the same problem and after seeing the tip about "double gzip" being the problem I went into htaccess and tested all the code lines.

The error I found (and I'm a little shocked to see it) is that gzip part is entered TWICE in the installation package!
If you look in the code below, the same three lines appear twice. If I comment out the first 3, my backend-CSS works as it should, but not with the original htaccess from the Joomla 4.4.5 package.

Code:

<IfModule mod_headers.c># Serve gzip compressed CSS files if they exist# and the client accepts gzip.RewriteCond "%{HTTP:Accept-encoding}" "gzip"RewriteCond "%{REQUEST_FILENAME}\.gz" -sRewriteRule "^(.*)\.css" "$1\.css\.gz" [QSA]# Serve gzip compressed JS files if they exist# and the client accepts gzip.RewriteCond "%{HTTP:Accept-encoding}" "gzip"RewriteCond "%{REQUEST_FILENAME}\.gz" -sRewriteRule "^(.*)\.js" "$1\.js\.gz" [QSA]</IfModule>
Also I'm on Lightspeed servers from my host, so I don't need any of this as it's for Apache servers, but it's working with one set of gzip instructions - but not TWICE!

I will file a bug with the developers to check this error, and the duplicate set of instructions in the htaccess file, and hopefully this problem will not surface anymore.

When i wrote them, they answered:
"It seems to be a known problem in the latest versions of Joomla, it is usually resolved by deactivating the gzip compression directives within the .htaccess file and then emptying any cache to regenerate it.
On our servers, since compression is already active, we run into double compression problems, so we recommend deactivating it."
Hi. This problem has long been resolved. That is why I suggested that you rename htaccess to get a file with a new code that solves this problem. It is strange that it did not work.

Nevertheless, I am glad that you managed to solve the problem.

Statistics: Posted by propellerhuvud — Thu May 30, 2024 4:13 pm



Viewing all articles
Browse latest Browse all 1362

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>