I found that when I create a blog post and insert images, WordPress automatically generates page for each one. When I check index status in Google with a site: search, I see 4 to 5 or more pages for my main article URL and all the images.

What can I do about this problem?

These pages compete with each other in Google search results for one keyword. I'm worried that they could be hurting my SEO.

1 Answer 1


That feature of WordPress isn't very useful and can create SEO problems. It is however easy to deal with with extensions. The Yoast SEO WordPress extension has a solution. You can have that extension redirect those pages to the image itself.

  1. Install the Yoast SEO plugin
  2. Click on 'SEO'
  3. Click on 'Search Appearance'
  4. Click on the 'Media' tab.
  5. Ensure 'Redirect attachment URLs to the attachment itself?' is set to 'Yes'

The next time Google crawls those image page URLs, it will see the redirects and they will get deindexed shortly. It may take Google a couple months to deindex all such pages across your entire site.

  • tnx stephen we do it and now image redirect to wp content and we hope goolge remove old urls at the next Oct 10, 2018 at 12:18
  • 1
    If google has already indexed "media" pages, you might need to also run Yoast SEO: Search Index Purge plugin. What it does is nicely explained at plugin official page: wordpress.org/plugins/yoast-seo-search-index-purge Oct 10, 2018 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.