meman1188 Posted May 19, 2008 Share Posted May 19, 2008 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? Link to comment https://forums.phpfreaks.com/topic/106339-css-optimization-script-causing-css-images-not-to-load/ Share on other sites More sharing options...
mendoz Posted May 24, 2008 Share Posted May 24, 2008 try changing path/to/image.jpg to /path/to/image.jpg And see what happens with the image's URL. Link to comment https://forums.phpfreaks.com/topic/106339-css-optimization-script-causing-css-images-not-to-load/#findComment-548943 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.