This actually applies to both CSS and JS aggregation. The .htaccess file included by default doesn't provide support for sites that require the RewriteBase directive be provided. In my case, it's because I'm using the VirtualDocumentRoot directive. More info: http://drupal.org/node/118569
I have worked around this by modifying the .htaccess files directly and adding the following right below RewriteEngine On (for the css directory, js is similar):
RewriteBase /sites/default/files/advagg_css
Lastly, thanks for a really very nice module - it's the best CSS/JS aggregator module I've used thusfar.
Thanks again!
Patrick
Comments
Comment #1
mikeytown2 commentedSo inside the generated htaccess files add in
I'll need to test this out and see if this interferes with sites not using the RewriteBase directive in the drupal root htaccess file. If this does interfere, then I will need to read the drupal root htaccess file to see if its using RewriteBase.
Just to double check, your drupal root htaccess files does use the RewriteBase directive correct?
Comment #2
mikeytown2 commentedawesome... appears to work without an issue on my test site; will need to test sub directory usage next; might be a day or 2 before I can do that.
Comment #3
mikeytown2 commentedThe first slash needs to be $base_path. This is the patch that has been committed.
Comment #4
pwilson commentedYup, the main Drupal site uses RewriteBase as well, but it's relative to its path:
I'm wondering if this fix might introduce any issues for some configurations. You've tested it successfully, but I wonder if maybe a feature request should be made to make it an option when regenerating the .htaccess files from the module's admin settings page. Just to be safe and make sure my special use case doesn't end up messing up someone else's special use case. Then again, maybe it's not worth it to try to accommodate every possible configuration. Either way, I'd consider this particular bug closed, and in record time!
Thanks again - really impressed with the turnaround on this,
Patrick
Comment #5
mikeytown2 commentedI tested this in a normal and sub-directory install. Hopefully its a smooth go for everyone.