If a site's files are stored in a directory with ".js" or ".css" in its name, and gzipped CSS/JavaScript files are being automatically generated, the rewrite will happen incorrectly.

For example:
sites/example.com.csstutorial/files/css/css__zN49QQO5PF_ZZXxYLLgh5tXkfpPkDwQizQGJjiAMKY.css
will be re-rewritten to
sites/example.com.css.gz

This can be fixed by simply changing the rules in .htaccess to check for the end of string.

Files: 
CommentFileSizeAuthor
css-js-gzip-rewrite.patch822 bytesspam38
PASSED: [[SimpleTest]]: [MySQL] 40,435 pass(es).
[ View ]