Title: attachment URL issue
Last modified: April 26, 2020

---

# attachment URL issue

 *  Resolved [drewbo](https://wordpress.org/support/users/drewbo/)
 * (@drewbo)
 * [6 years ago](https://wordpress.org/support/topic/attachment-url-issue/)
 * Morning chaps, any help on this would be super appreciated. I’m trying to rank
   this page for a friend: [https://bardouly.com/yoga-wellness/yoga-retreat-france/](https://bardouly.com/yoga-wellness/yoga-retreat-france/),
   yesterday it was ranking fine on page 1 and I have several new links about to
   drop to push it up further.
 * However, I’ve checked on Google this morning and now I’m getting this page instead:
   [https://bardouly.com/wp-content/uploads/2020/04/yoga.jpg](https://bardouly.com/wp-content/uploads/2020/04/yoga.jpg).
 * What is the quickest way to ensure the correct page is showing and not this attachment
   URL?
 * I’ve read about the Yoast purge plugin, does anyone know how fast this works 
   to remove the attachment URLs? Has this worked for peeps?
 * Any advice on how best to resolve it in short term, for example, does it make
   sense to sumbit URL to Google Search Console and ask them to hide it?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fattachment-url-issue%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Pcosta88](https://wordpress.org/support/users/pcosta88/)
 * (@pcosta88)
 * [6 years ago](https://wordpress.org/support/topic/attachment-url-issue/#post-12784072)
 * Hi,
 * Did you resolve the issue? We ask as the page is loading here: [https://bardouly.com/yoga-wellness/yoga-retreat-france/](https://bardouly.com/yoga-wellness/yoga-retreat-france/).
   See image [https://pasteboard.co/J6XIYPc.png](https://pasteboard.co/J6XIYPc.png).
 * We can also see it appearing in Google [here](https://www.google.com/search?q=site%3Ahttps%3A%2F%2Fbardouly.com%2Fyoga-wellness%2Fyoga-retreat-france%2F&oq=site%3Ahttps%3A%2F%2Fbardouly.com%2Fyoga-wellness%2Fyoga-retreat-france%2F&aqs=chrome..69i57j69i58.895j0j4&sourceid=chrome&ie=UTF-8).
 * Though, we can see attachment pages in Google. If you want to remove attachment
   pages in Google please do the following:
 * A. Go to SEO-Search Appearance-Media and select YES.
 * B. Install the purge plugin: https://wordpress.org/plugins/yoast-seo-search-index-
   purge/ from your Plugins menu by searching for it. This will make all those attachment
   pages be a 410.
 * This error will tell Google to deindex those attachment pages and remove them
   from Google. You may see an increase in errors in your Google Search Console 
   but it is expected with the purge plugin.
 *  [devnihil](https://wordpress.org/support/users/devnihil/)
 * (@devnihil)
 * [6 years ago](https://wordpress.org/support/topic/attachment-url-issue/#post-12822132)
 * We are going ahead and marking this issue as resolved due to inactivity. If you
   require any further assistance please create a new issue.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘attachment URL issue’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [attachment url](https://wordpress.org/support/topic-tag/attachment-url/)
 * [Purge](https://wordpress.org/support/topic-tag/purge/)

 * 2 replies
 * 3 participants
 * Last reply from: [devnihil](https://wordpress.org/support/users/devnihil/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/attachment-url-issue/#post-12822132)
 * Status: resolved