WP Ghost with LiteSpeed Cache – Configuration, QUIC.cloud CDN, and Path Rewriting

Moved

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

View on new site

WP Ghost (formerly Hide My WP Ghost) is compatible with LiteSpeed Cache. Enable “Change Paths in Cached Files” in WP Ghost so custom paths apply inside LiteSpeed’s cached and minified CSS/JS files. If you use QUIC.cloud CDN, whitelist QUIC.cloud IP addresses in WP Ghost’s firewall so Ghost Mode does not block the CDN connection.

LiteSpeed Cache Configuration

LiteSpeed Cache and WP Ghost plugins installed in the WordPress plugins list

Step 1: Enable Change Paths in Cached Files

Go to WP Ghost > Tweaks. Enable Change Paths in Cached Files. Click Save. This rewrites WordPress paths inside LiteSpeed’s cached and minified files so they use your custom paths.

WP Ghost Change Paths in Cached Files enabled for LiteSpeed compatibility

Step 2: Verify with LiteSpeed Page Optimization

If LiteSpeed’s CSS/JS minification and combination is active (LiteSpeed > Page Optimization), WP Ghost’s “Change Paths in Cached Files” processes the minified output too. Purge all LiteSpeed cache after enabling, then check the page source in incognito – no /wp-content/ references should appear in cached file URLs.

LiteSpeed Page Optimization CSS/JS minification settings

QUIC.cloud CDN Configuration

QUIC.cloud is LiteSpeed’s CDN service. When WP Ghost is in Ghost Mode, it may block QUIC.cloud servers from connecting to your site. Whitelist QUIC.cloud IP addresses so the CDN can communicate with your site.

Whitelist QUIC.cloud IPs

Go to WP Ghost > Firewall > Whitelist > Whitelist IPs. Visit the QUIC.cloud IP addresses page to get the latest list. Copy the IP addresses and paste them into WP Ghost’s whitelist. Click Save.

WP Ghost Firewall Whitelist with QUIC.cloud IP addresses added

Request the LiteSpeed Domain Key

After whitelisting the IPs, go to LiteSpeed Cache > General > Domain Key. Click Request Domain Key. With the IPs whitelisted, the connection to QUIC.cloud should complete successfully. This key authenticates your domain with the CDN service.


Troubleshooting

Cached files still show old WordPress paths. Purge all LiteSpeed cache. WP Ghost processes cached files in the background via WP-Cron – allow a minute after purging.

QUIC.cloud Domain Key request fails. Verify the QUIC.cloud IPs are whitelisted in WP Ghost. QUIC.cloud updates their IP list periodically – check quic.cloud/ips for the latest addresses.

LiteSpeed minified files have broken styling. Try disabling file combination in LiteSpeed (keep minification on). This lets WP Ghost process individual files more reliably.


Frequently Asked Questions

Do I need the QUIC.cloud whitelist if I do not use the CDN?

No. The QUIC.cloud whitelist is only needed if you use QUIC.cloud’s CDN service. If you only use LiteSpeed for local caching and page optimization, no whitelist is required.

Do I purge LiteSpeed cache after changing WP Ghost paths?

Yes. After any path change in WP Ghost, purge all LiteSpeed cache so new cached files are generated with updated paths.

Does LiteSpeed’s server-level cache work with WP Ghost?

Yes. LiteSpeed server (not just the plugin) caches pages at the server level. WP Ghost’s “Change Paths in Cached Files” processes the cached output. Both work together on LiteSpeed servers.

Does WP Ghost modify WordPress core files?

No. Cached file rewriting modifies copies in LiteSpeed’s cache directory, not original files. Deactivating restores all defaults.


Hide Paths in CSS Files – how Change Paths in Cached Files works.

CDN URL Mapping – extend path changes to CDN domains.

Customize All WordPress Paths – configure paths before cache setup.

Compatibility Plugins List – all tested cache plugins.

Website Security Check – verify your configuration.