Does WP Ghost Affect Existing Indexed Assets Like Images and PDFs?

Moved

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

View on new site

No. Images, PDFs and other media that Google has already indexed stay reachable at their original URLs. WP Ghost changes the paths of WordPress structure files (CSS, JS, PHP) and admin pages, not your public media. Search engines and visitors keep reaching the same files.

How WP Ghost Handles Media Files

Safe Mode and Ghost Mode change the paths of WordPress structure files such as CSS, JavaScript, plugins, themes and admin pages. Media files (images, PDFs, videos, documents) in the uploads directory are handled differently. The original /wp-content/uploads/ URLs stay reachable by default, so images embedded in posts, pages and external links keep loading.

Bots probe PHP files, plugin paths, login pages and admin endpoints, not media files. So WP Ghost changes those paths and leaves media on the original URLs. Your image rankings stay where they are, and caching plugins serve images as before.

What About New Media Uploads?

If you change the uploads path in WP Ghost, files uploaded after the change appear under the new custom path in the page source. Files uploaded before the change stay reachable at the original path. Both paths work at the same time, so old and new posts keep loading their media.

Redirecting Old Media Paths (Optional)

WP Ghost can also serve every media file, older uploads included, through the new custom path. Enable Hide WordPress Common Paths in WP Ghost > Change Paths > WP Core Security and include media files in the configuration. Old media URLs then redirect to the new paths, so search engines and visitors land on the file instead of an error page.

Most sites should leave existing media on the original paths. The redirect suits sites that want every file on the new path and can wait for search engines to reindex the new URLs. For details, see the Redirect Images from Old Paths to New Paths tutorial.

Frequently Asked Questions

Will my Google Image Search rankings be affected?

Not with the default configuration, because your existing image URLs don’t change. If you turn on the redirect for old media paths, Google follows it and reindexes the new URLs over time. A correct 301 redirect doesn’t cause ranking loss.

Do embedded PDFs and documents still work?

Yes. PDFs, Word documents and other files in the uploads directory stay at their original URLs. Links to them from your posts and from other sites keep working.

Does this work with WooCommerce product images?

Yes. WooCommerce stores product images in the uploads directory, so the same rules apply. Existing product images keep their URLs, and new uploads use the custom path in the page source.

Will caching plugins have issues with the path changes?

No. Existing media stays on its original paths by default, so caching plugins serve it from cache as before. After you change any paths in WP Ghost, clear the cache so cached pages pick up the new CSS and JS paths.

Does WP Ghost modify WordPress core files?

No. WP Ghost uses rewrite rules and WordPress filters, and it doesn’t move or edit any media, core or uploaded file. Deactivating WP Ghost brings back all original paths at once.