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 is not a CDN provider and does not include CDN server access. The CDN URL Mapping feature is a path security tool that extends WP Ghost’s custom path changes to your existing CDN domain. If you already use a CDN (through Cloudflare, BunnyCDN, WP Rocket, or any other provider), CDN Mapping ensures your CDN-served assets use the same custom paths as your local domain, so no default WordPress paths are exposed anywhere in your source code.

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.yourdomain.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.yourdomain.com/wp-content/uploads/image.jpg becomes cdn.yourdomain.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 auto-detects CDN domains from several popular plugins so you don’t need to enter them manually. Supported plugins include WP Rocket, CDN Enabler (commonly used with BunnyCDN), EWWW Image Optimizer, JCH Optimize, Power Cache CDN, WP Cache CDN, and Hyper Cache CDN. If your CDN plugin isn’t auto-detected, you can add the CDN domain manually in WP Ghost > Mapping > CDN.

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 along with 115+ other security features. No premium upgrade is required.

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.