static files subdomain cdn




Wordpress LScache Plugin: static files subdomain cdn

Last Updated on: Wed, 15 Apr 2026 00:00:02
Hello, could static files like images, css, js from wp-content and wp-includes be served from a CDN in LiteSpeed using a subdomain?. I have seen the CDN Mapping option in CDN settings, could I use this feature for my purpose? thank you! Hi, Yes, if you have a CDN service. Best regards, No, I mean if I can use dns mapping with a subdomain created in cPanel pointing to /public_html. I know that other cache plugin the option is Enable CDN support , http://subdomain.domain.com&#8221 in Off-site URL . Is it possible in LiteSpeed? Thank you! Hi, Yes, you can use that as well but the sub-site URL structure must be matching with main domain LSCWP will rewrite it from https://www.doamin.com/wp-content/plugins/some/some/file.jpg to https://cdn.domain.com/wp-content/plugins/some/some/file.jpg Best regards, Ok, I can open a file jpg in both ways manually. But the web displays https://www.domain.com/wp-content/plugins/some/file.jpg. How could I to know if its working? Thank you! Hi, Could you please screenshot me the CDN setting ? or report number Best regards, I dont know how to put a screenshot in the message. Hi, You can upload it somewhere like dropbox or google driver , then share the link. Best regards, Ok, https://drive.google.com/open?id=1npupHKpODlz7ydVu30YlTduR9omSuB24 Thank you! Hi, In litespeed.jpg , you need to make it https://xxxx/ , you missed / at end of CDN URL in litespeed2.jpg , you need to set Origin URI which is currently empty , it should be like //domain.com/ or //www.domain.com/ , and please do not miss // at start, and / at end. Best regards, Now, I think it works. I have upload another screenshot in drive. https://drive.google.com/open?id=1npupHKpODlz7ydVu30YlTduR9omSuB24 Now it looks like this https://faus.xyz/about/ I guess I have to move the content and includes and its finish. Thank you! Hi, No , because this domain doesnt exist https://estaticos.faux.xyz/, you need to create A record and issue cert for it. Best regards, Ok, a record and cert had been created automatically. The problem was that I had written faux.xyz instead of faus.xyz in Litespeed. Now everything is ok. Thanks a lot!



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



Reference