Black Friday Black FridayUp to 85% off all WP Ghost plans.48 months from $49, or pay once for lifetime. SHOP NOW

Is a CDN Server Included with WP Ghost?

Moved

This tutorial has moved to the new WP Ghost Knowledge Base where each feature is presented in detail.

View on new site

No. WP Ghost doesn’t include a CDN. Its CDN URL Mapping applies your custom paths to the asset URLs of a CDN you already use, so a separate CDN domain doesn’t expose /wp-content/ paths.

What does CDN URL Mapping actually do?

When you use a CDN, your static assets (images, CSS, JS) are served from a different domain like cdn.example.com instead of your main domain. WP Ghost changes paths on your local domain (turning /wp-content/ into your custom path), but by default it doesn’t recognize the CDN domain. Without CDN Mapping, your CDN-served URLs still show default WordPress paths like /wp-content/plugins/ and /wp-content/themes/ in the page source.

CDN URL Mapping registers your CDN domain with WP Ghost so the same path replacements apply to both domains. After configuration, cdn.example.com/wp-content/uploads/image.jpg becomes cdn.example.com/custom-path/uploads/image.jpg, matching your local domain’s custom paths. No more exposed WordPress structure in CDN URLs.

Do I need my own CDN to use this feature?

Yes. You need an existing CDN setup before CDN Mapping does anything useful. This can be a CDN through your hosting provider (many managed hosts include Cloudflare or their own CDN), a standalone CDN service like BunnyCDN or KeyCDN, or a CDN integrated through a caching plugin like WP Rocket or LiteSpeed Cache.

If you don’t use a CDN at all (all your assets are served from your main domain), you don’t need CDN Mapping. WP Ghost’s standard path changes already cover everything on your local domain.

Which CDN plugins does WP Ghost support?

WP Ghost reads the CDN domain from WP Rocket, CDN Enabler, the BunnyCDN plugin, EWWW Image Optimizer, JCH Optimize, Powered Cache, WP Super Cache and Hyper Cache, and from a WP_CONTENT_URL set to another domain. If your CDN isn’t detected, add its URL in WP Ghost > Mapping > CDN Mapping.

For the full CDN Mapping setup guide, see the CDN URL Mapping tutorial. For the complete list of compatible plugins, see the compatibility plugins list.

Frequently asked questions

Does this work with Cloudflare?

Cloudflare works differently from traditional CDNs. It proxies your entire domain rather than using a separate CDN subdomain. Because Cloudflare-served URLs use your own domain (not a different domain), WP Ghost’s standard path changes already apply to them. You typically don’t need CDN Mapping for Cloudflare. CDN Mapping is for setups where assets are served from a separate domain or subdomain.

Does CDN Mapping affect CDN performance?

No. CDN Mapping only changes URL paths in the HTML source code that WordPress generates. The CDN continues serving files from its edge servers as normal. The path change happens in the HTML output, not on the CDN infrastructure itself. Your CDN performance, caching, and delivery speed are completely unaffected.

Is CDN Mapping a free feature?

Yes. CDN URL Mapping is included in WP Ghost Free.

Does WP Ghost modify WordPress core files?

No. CDN Mapping replaces URLs in the HTML output at runtime using WordPress filters. No files on your server or CDN are modified. Disabling CDN Mapping restores all original CDN URLs instantly.