Odd url rewrite of css background urls




Wordpress LScache Plugin: Odd url rewrite of css background urls

Last Updated on: Wed, 15 Apr 2026 00:00:02
On a wordpress site Ive just implemented Litespeed and LS Cache in tandem with an existing KeyCDN setup, Im getting a weird rewrite of base relative urls in css. Anything listed as something like /wp-content/theme/blah/images/blah.jpg is getting rewritten to https://cdnname/min/wp-content/theme/blah/images/blah.jpg which is then a 404 as the CDN cant pull that url from the source site. Any tips? I tried excluding /min/ from the cdn settings in lscache, this worked but resulted in the resources no longer being pulled from the CDN obviously. Any help appreciated as Ive been on it two full days and cant work out why its bothering me and seemingly no-one else! Andy Sorry, I should add, this is only in the critical css section it appears, the merged and minified css is absolutely fine. Hi @london75, theres a path rewritten bug on the CCSS generator and we will fix the absolute path issue on v3.0. Great, thanks for the speedy response, Ill stop tearing my hair out! Sorry that it was a known issue, I did google first I promise! No problem, happy coding



LiteCache Rush: Speed comes from using less, not from doing it faster



Reference