Skip to content
24/7 support · 7-day money-back guarantee · Free plan, no card neededSee plans

Blog › WordPress SEO ›

WordPress attachment pages: why they hurt SEO and how to fix them

Cover image: WordPress attachment pages: why they hurt SEO and how to fix them

When you upload an image to WordPress, the system can create a separate page just for that file, called an attachment page. In many setups, that page holds only the image and a title, with no useful content. Search engines may index hundreds of these thin pages, which is not helpful for visitors or for the site’s overall quality.

Why they cause problems

An attachment page usually has little text, duplicates the image already shown in the post and competes with the real article for attention. It may appear in search results, sending visitors to a dead end instead of the full post. It also adds to the number of low-value indexed URLs.

What current WordPress does

Recent versions of WordPress have changed the default behavior so attachment pages are less likely to be created and indexed, but older sites and some themes may still expose them. You should check rather than assume.

How to check

Search Google for your site with the word attachment in the URL, or look at the sitemap and the Search Console indexed pages for URLs that look like media pages. Open an image’s attachment URL from the media library and see whether a page loads.

How to fix them

The best approach is to redirect attachment URLs to the parent post, or to the media file if there is no parent. Many SEO plugins offer an option for this. Choose one method and verify it works by testing several URLs. If you use SEOStrive’s redirection manager, you can add rules for specific cases, and Pro supports regex patterns that handle groups of URLs.

Keep images discoverable

Redirecting attachment pages does not stop your images from being found. Use descriptive file names and alt text, and include images in your sitemap. SEOStrive’s sitemap can list images, so search engines still discover them.

Clean up the index

After redirecting, expect the old attachment URLs to drop out gradually. Do not block them in robots before they have been recrawled, because the redirect needs to be seen. Check Search Console periodically.

Prevent future buildup

Turn off the setting in your theme or plugin that links images to attachment pages. When you insert images, link them to the media file or to nothing at all.

Verify

Run a site audit to confirm there are no thin attachment pages left and that your redirects behave as intended.

Frequently asked questions

Do attachment pages ever help? Rarely. Most sites should redirect them.

Will redirecting hurt images? No, if images remain in content and sitemaps.

How do I find them? Check your sitemap and Search Console.

Keep reading

Comments

Leave a comment

Check your own site

Run a free audit and see what to fix first.

Run a free audit