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.

CommentFileSizeAuthor
css-js-gzip-rewrite.patch822 bytesspam38
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

darol100’s picture

Issue summary: View changes
Status: Needs review » Needs work

I test this patch out and did not work for me.

After I apply the patch this is the results http://d7.dev/sites/default/files/css/css_xE-rWrJf-fncB6ztZfd2huxqgxu4WO-qwma6Xer30m4.css.

Let me know, if I'm missing something.