Jump to content

CSS optimization script causing CSS images not to load


meman1188

Recommended Posts

I am using a php script to optimize the CSS and JS of my site on demand. (it is optimized and cached, until the file is modified). I use mod_rewrite to achieve this:

 

RewriteRule ^(.*\.((js)|(css)))$ http://www.mysite.com/loader.php?p=$1

 

However, with this in place, images inside the CSS scripts are no longer working for CSS scripts not within the www subdomain. I think it is because i am changing subdomains but if i understand mod_rewrite correctly, the accesser should not even know the URL is changing. Any ideas?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.