Attachment URLs redirect is an important SEO check in the URL Structure category. This is a medium-priority issue. While not urgent, fixing it will improve your overall SEO health.

What this check is really about

Here is a piece of WordPress behaviour that surprises people who have run sites for years: every single image you upload gets its own web page. Not just the image file — a full attachment page at a URL like yoursite.com/my-photo/, with your theme’s header and footer wrapped around one picture and, usually, no text at all. This check verifies that those attachment URLs are redirected somewhere sensible instead of sitting in your site as hundreds or thousands of thin, near-empty pages. It is a quick, low-drama fix that quietly removes a whole class of junk from your indexable footprint.

On a media-heavy site this adds up fast. A 300-post blog can easily carry a couple of thousand attachment pages, each one a page Google may crawl, may index, and will almost certainly judge as thin. The good news: this is a five-minute toggle in any modern SEO plugin.

Why it matters for SEO

  • Thin content at scale. Attachment pages are the definition of thin — one image, no substance — and thousands of them is not a signal you want to send about site quality.
  • Wasted crawl budget. Every attachment URL a bot crawls is a request not spent on a page that matters.
  • Search results pollution. Left indexable, these pages can surface in results, sending a searcher to a bare image instead of the post it belongs to.

How I would fix it in WordPress

Difficulty Level: EASY – This fix is straightforward and can typically be completed by anyone with basic WordPress knowledge.

Estimated Time: 5 min

  1. Yoast SEO: go to Yoast SEO → Settings → Advanced → Media pages and set “Enable media pages?” to Off. Yoast then redirects attachment URLs to the attachment file itself. Newer installs ship with this off by default, but older sites carry the legacy setting — check it.
  2. Rank Math: under General Settings → Links, enable “Redirect Attachments” so attachment URLs point to the parent post or the media.
  3. No SEO plugin? A small functions.php snippet or a redirect rule can send attachment requests to their parent, but if you are running WordPress without an SEO plugin, installing one is the better call.
  4. Verify. Visit a known attachment URL and confirm it now redirects instead of rendering an empty page.

Clear your cache and re-run the SEO Roadmap audit. Over the following weeks, watch these URLs drop out of Search Console’s index coverage as Google reprocesses the redirects.

Common mistakes I see

  • Assuming a fresh install handles this — legacy sites and migrated content often still expose attachment pages.
  • Noindexing attachment pages instead of redirecting them. Redirecting is cleaner: it removes the URL entirely rather than keeping an empty page that merely hides from search.
  • Building an intentional gallery or portfolio on attachment pages and then blanket-redirecting them. If you deliberately use them, this check may not apply — know which case you are in.
  • Forgetting to verify, so a misconfigured setting silently leaves the pages live.

Recommended Tools & Plugins

These tools can help you fix and prevent this issue:

  • Yoast SEO – Comprehensive SEO plugin with built-in checks
  • Rank Math – Feature-rich SEO plugin with detailed analysis
  • Google Search Console – Free tool to monitor your site’s search presence
  • SEO Roadmap – Complete SEO audit and action plan tool

This guide is part of the SEO Roadmap knowledge base – your complete resource for WordPress SEO optimization.

Leave a Reply

Your email address will not be published. Required fields are marked *

Close Search Window