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

WP Ghost does not break existing indexed assets. Images, PDFs, and other media files that Google has already indexed remain accessible through their original URLs. WP Ghost’s path changes target WordPress structure files (CSS, JS, PHP) and admin paths, not your public media content. Your existing indexed media continues working for both search engines and visitors without any interruption.

How WP Ghost Handles Media Files

When you activate Safe Mode or Ghost Mode, WP Ghost changes the paths for WordPress structural files like CSS, JavaScript, plugins, themes, and admin pages. Media files (images, PDFs, videos, documents) in your uploads directory are treated differently. The original /wp-content/uploads/ URLs remain accessible by default to preserve SEO and ensure that images embedded in your posts, pages, and external links continue loading correctly.

This design is intentional. Media files are not the target of bot reconnaissance or exploit attacks. Bots target PHP files, plugin paths, login pages, and admin endpoints. Keeping media accessible through their original paths protects your search rankings and ensures caching plugins serve images correctly, while the security-critical paths are changed and hidden.

What About New Media Uploads?

If you change the uploads path in WP Ghost, new media files uploaded after the change will use the new custom path in the page source. Existing files uploaded before the change continue to be accessible through the original path. Both paths work simultaneously, so there is no disruption to old content or new content.

Redirecting Old Media Paths (Optional)

If you want all media files, including previously uploaded ones, to be served through the new custom path, WP Ghost includes a setting for that. Enable Hide WordPress Common Paths in WP Ghost > Change Paths > WP Core Security and include media files in the configuration. When enabled, old media URLs are automatically redirected to the new paths. This ensures search engines and visitors are seamlessly redirected without encountering errors.

For most sites, leaving existing media on their original paths is the recommended approach. The redirect option is available for users who want maximum path consistency and are willing to wait for search engines to reindex the new URLs. For details on redirecting image paths, see the Redirect Images from Old Paths to New Paths tutorial.

Frequently Asked Questions

Will my Google Image Search rankings be affected?

No, when using the default configuration. Your existing image URLs remain unchanged and accessible. Google continues to index and rank them normally. If you enable the optional redirect for old media paths, Google will follow the redirect and reindex the new URLs over time. Properly configured redirects (301) do not cause ranking loss.

Do embedded PDFs and documents still work?

Yes. PDFs, Word documents, and any other files in your uploads directory remain accessible through their original URLs. Links in your posts, pages, and external sites pointing to these files continue working without modification.

Does this work with WooCommerce product images?

Yes. WooCommerce product images are stored in the uploads directory and follow the same rules. Existing product images remain accessible. New uploads use the custom path in the page source. WP Ghost is fully compatible with WooCommerce.

Will caching plugins have issues with the path changes?

No. Since existing media files stay on their original paths by default, caching plugins serve them from cache normally. After changing any paths in WP Ghost, clear your cache so the structural file paths (CSS, JS) are updated in cached pages. Media file caching is unaffected.

Does WP Ghost modify WordPress core files?

No. WP Ghost uses rewrite rules and WordPress filters. No media files, core files, or uploaded content is moved, renamed, or modified. Deactivating WP Ghost restores all original paths instantly.