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:
will be re-rewritten to

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

css-js-gzip-rewrite.patch822 bytesspam38
PASSED: [[SimpleTest]]: [MySQL] 40,435 pass(es). View
Members fund testing for the Drupal project. Drupal Association Learn more


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.