# How to stop WordPress attachment pages from being indexed

> WordPress creates a page for every uploaded image. Redirect them to the file or the parent post so they do not dilute the index.

WordPress & WooCommerce · HTML version: https://getreport.app/learn/wordpress-attachment-pages

## WordPress attachment pages

Passing looks like: Attachment pages are not exposed to search engines.

**Why it matters.** WordPress creates a bare page for every uploaded image. Hundreds of them in the index dilute the site with pages that hold nothing but a picture.

**How to fix it.**

1. In Yoast SEO, under Settings, Advanced, Media pages, enable the redirect of attachment URLs to the file itself; in Rank Math set Media to noindex or redirect.
2. Without an SEO plugin, add a redirect from attachment pages to the parent post in your theme or a redirect plugin.

Check your own page: https://getreport.app/
