By default, WP Ghost does not break existing assets Google has already indexed. Your images and PDFs stay physically in /wp-content/uploads/ on disk, and WP Ghost creates virtual URLs at the new path through rewrite rules. If you only change the uploads path, both old and new URLs can resolve to the same file, which Google sees as duplicate content. The clean setup is to enable Hide WordPress Common Paths with MEDIA Files selected, which automatically 301-redirects old /wp-content/uploads/ URLs to your new path. External links keep working, Google re-indexes the new paths, and SEO authority consolidates cleanly to one URL per asset.

What Happens to Your Existing Media

When you change the uploads path in WP Ghost, three things are true at once:

Your files never move. WP Ghost does not physically relocate anything. Every image, PDF, video, and document stays exactly where WordPress put it inside /wp-content/uploads/ on your server. The custom path (say /storage/) is a virtual URL created through rewrite rules, not a new folder on disk.

New URLs work immediately. Every asset link in your posts, pages, RSS feed, sitemap, and theme templates is automatically rewritten to use the custom path. New visitors and Googlebot see the new URLs.

Old URLs still work too (by default). Since the files are still physically in /wp-content/uploads/, a direct request to that old path can still serve the file. This is good for backwards compatibility (no broken external links), but bad for SEO (duplicate content). The fix is the redirect setting, which we cover below.

Three Configuration Options Explained

ConfigurationOld URLs BehaviorBest For
Path change only (default)Both old and new URLs resolveQuick migration, backwards compatibility, not ideal for SEO long-term
Path change + Hide WordPress Common Paths with MEDIA FilesOld URLs 301-redirect to new pathsRecommended. Preserves external links, consolidates SEO authority
Path change + Hide WordPress Common Paths with IMAGE FilesOld image URLs return 404Maximum security when you do not care about external links

Recommended: Redirect Old URLs to New Paths

For most sites, the best approach is a redirect setup. It is the best of both worlds: external links keep working, SEO authority consolidates, and WordPress fingerprints stop leaking.

  1. Go to WP Ghost > Change Paths > WP Core Security.
  2. In the Custom Uploads Path field, enter a custom directory name (for example storage, assets-box, or keep the randomized default).
  3. Enable Hide WordPress Common Paths.
  4. Under Hide File Extensions, select MEDIA Files from the list. This sets up the redirect behavior for all media file types (images, PDFs, videos, documents).
  5. Click Save and clear your cache (WordPress cache, CDN cache, browser cache).
  6. Resubmit your sitemap in Google Search Console to accelerate re-indexing of the new paths.

Full walkthrough in the Redirect Images from Old Paths guide.

What Google Does Over Time

Search engines respect 301 redirects. Here is the typical timeline after enabling the MEDIA Files redirect:

Week 1: Google continues serving old indexed URLs. When users click those results, they get redirected to the new path. The image loads correctly, nobody notices anything wrong.

Weeks 2 to 4: Googlebot recrawls your site, follows the 301 redirects, and starts updating its index to the new URLs. You can monitor progress in Google Search Console’s URL Inspection tool.

Weeks 4 to 8: Most indexed image URLs have been replaced with the new paths. SEO authority has fully consolidated. Duplicate content risks are resolved.

The recrawl speed depends on how often Google visits your site, your sitemap submission cadence, and the total asset count. Resubmitting your sitemap in Google Search Console speeds this up.

Redirect vs Hide: Which to Choose

WP Ghost offers two options for handling old paths. Picking between them depends on your goals:

Use MEDIA Files (redirect) if your assets are already indexed by Google, linked from other websites, or shared in newsletters and social media. The 301 redirect preserves all that link equity while still hiding your WordPress structure. This is the right choice for almost every established site.

Use IMAGE Files (hide) only if you want maximum security and do not care about external links or Google Image Search traffic breaking. Old image URLs will return 404. Useful on private sites or after you have already migrated away from the old paths.

You can see both options under WP Ghost > Change Paths > WP Core Security > Hide File Extensions.

Frequently Asked Questions

How does WP Ghost affect existing assets Google has indexed?

By default, existing assets stay accessible at their original URLs. WP Ghost does not move your files, it just creates virtual URLs at the new path. If you want old URLs to redirect to new ones (recommended for SEO), enable Hide WordPress Common Paths with MEDIA Files selected. Old URLs 301-redirect to the new paths, and Google updates its index over the next few weeks.

Will my Google Image Search traffic disappear?

No, if you use the redirect setup. The 301 redirect passes SEO authority from old URLs to new ones. Google updates its index over time (typically a few weeks), and your image rankings continue at the new URLs. Traffic continuity is preserved throughout the transition.

What about external sites linking to my PDFs or images?

With the redirect setup, external links keep working. When someone clicks a link to /wp-content/uploads/2024/05/brochure.pdf, they are transparently redirected to /storage/2024/05/brochure.pdf (or whatever your custom path is). The PDF loads. Visitors notice nothing. Link authority transfers to the new URL.

Will this cause duplicate content issues with Google?

Only if you change the path without enabling the redirect. If both old and new URLs serve the same file, Google sees duplicate content, which can dilute SEO signals. The Hide WordPress Common Paths + MEDIA Files setup eliminates this by making old URLs 301-redirect to new ones, which Google treats as canonical consolidation.

Do I need to manually update any URLs in my posts?

No. WP Ghost rewrites all media URLs automatically in your posts, pages, RSS feed, sitemap, and theme templates. You do not need to edit content or run a database search-and-replace. See the frontend link rewriting FAQ for details.

Does this work for PDFs and video files too, not just images?

Yes. The MEDIA Files setting covers all media file types: images (jpg, png, webp, gif, bmp, tiff), documents (pdf, doc, docx, xls, xlsx, ppt, pptx), videos (mp4, webm, mov), audio files, and other uploads. All of them get the same redirect behavior from old paths to new paths.

Does this work with a CDN?

Yes, but your CDN needs to be configured to serve the new path. Most CDNs (Cloudflare, BunnyCDN, KeyCDN) handle this through origin-pull rules automatically. Purge the CDN cache after making changes so it picks up the new paths. See the CDN URL Mapping guide.

Does WP Ghost physically move my media files?

No. WP Ghost never moves, renames, or modifies any file. Your images, PDFs, and all media stay in /wp-content/uploads/ where WordPress put them. The new paths are virtual URLs created through server rewrite rules. Deactivating WP Ghost restores the original URLs instantly with no file recovery needed.