Attachment redirect enabled is a check in the WordPress Specific category. It is medium-priority and, refreshingly, a five-minute fix. This is one of those defaults WordPress gets wrong for most sites, quietly spawning hundreds of thin, indexable pages you never meant to publish. Flip one setting and they go away.

What is This Check About?

Every time you upload an image to WordPress, it creates an attachment page — a standalone URL like /my-post/blue-widget-photo/ whose entire content is that one image and maybe a caption. This check verifies that those attachment URLs are redirected to something useful (the parent post, or the image file itself) instead of being left to stand as their own indexable pages.

When the check fails, your site is serving live attachment pages. On a photo-heavy site that can mean hundreds or thousands of near-empty URLs, each one an image with no real content around it — precisely the kind of page Google’s helpful-content signals treat as noise.

Why Does This Matter for SEO?

  • Attachment pages are thin by definition — one image, no substantive text — and a mass of thin pages drags on how Google assesses overall site quality
  • They waste crawl budget: the crawler spends its visits on empty image URLs instead of your real content
  • They can surface in search instead of the article that image belongs to, sending users to a dead end
  • They inflate your indexed-page count with URLs that will never rank for anything you want

How to Check This Issue

  1. Run an SEO audit with the SEO Roadmap tool to confirm attachment URLs are live
  2. Take any image on your site, open it in the media library, and visit its attachment URL — if it loads as a page instead of redirecting, the setting is off
  3. In Google, search site:yourdomain.com and look for image-only URLs in the results
  4. Check Search Console’s Pages report for indexed attachment URLs

How to Fix This in WordPress

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

Estimated Time: 5 min

Step 1: Flip the setting in your SEO plugin

This is the whole fix for most sites. In Yoast SEO, go to Yoast SEO → Settings → Media pages and set “Enable media pages?” to Off — Yoast then redirects every attachment URL to the file. In Rank Math, go to General Settings → Links and enable “Redirect Attachments”. Both do the same job.

Step 2: If you run no SEO plugin

Modern WordPress cores already redirect attachment pages to their parent when no plugin overrides it, but the behaviour is inconsistent across themes and page builders. If you are not running Yoast or Rank Math, the cleanest fix is a small snippet that redirects is_attachment() requests to the parent post or the file URL. If you are not comfortable editing functions.php, installing one of the SEO plugins for this single toggle is the safer route.

Step 3: Decide where they should point

Redirecting to the attachment file itself (the raw image) is the standard, safe choice and what Yoast does. Redirecting to the parent post is also valid and can be friendlier for users who land on one. Either clears the check; pick one and be consistent.

Step 4: Verify the redirect

  1. Clear your cache if you run a caching plugin
  2. Visit a known attachment URL and confirm it now 301-redirects instead of rendering a page
  3. Re-run the SEO Roadmap audit and let Search Console reprocess the URLs over the coming weeks

Do not panic about the ones already indexed

The question I always get after this fix is: “I have 900 attachment pages in the index — did I just break my site?” You did not. Redirecting them is exactly the right signal; Google will process the 301s and drop the attachment URLs from the index over the following weeks, consolidating any stray value into the file or parent. Do not go hunting for a way to reindex them faster, and do not add them to a disavow or noindex them on top of the redirect — a redirect and a noindex fighting each other just confuses the crawler. Flip the setting once, verify one URL redirects, and let WordPress and Google sort out the backlog on their own schedule. This is the rare SEO fix that is genuinely set-and-forget.

Recommended Tools & Plugins

  • 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

Common Mistakes to Avoid

  • Layering a noindex on top of the redirect — pick one; the redirect is enough
  • Assuming your theme or page builder handles this automatically without checking a real URL
  • Trying to manually delete or disavow already-indexed attachment pages instead of letting the 301s do the work
  • Toggling the setting and never verifying that one attachment URL actually redirects

Need More Help?

  • Consulting with a WordPress developer or SEO specialist
  • Checking the WordPress support forums for similar issues
  • Reviewing your theme and plugin documentation
  • Running a complete site audit with SEO Roadmap for a prioritized action plan

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