Google hate poor content and having too many poor content can be a reason of Google penalty. You might also know that, WordPress Attachment page is a kind of low quality web page to Google.
We often check how our website appears in SERP’s and we become wonder when we find attachment pages in Google. Especially this happen most of the time with WordPress user, Because when we upload any images or media to our WordPress, It creates an attachment page.
And if you are not careful about how your website appearing in SERP’s, Google might indexing your attachment pages that are poor content to the Google. So you are risking of search penalty.
Actually, the WP Attachment page is just a page that is created due to image upload and only display image and its description. From the view of the robot, There is no text (blank) and named wrong. It also leads people to the blank page that increase bounce rate that is a red signal to the search engines.
But, An image worth thousand words, So we must try to use images within our blog post without risking of poor content. You might think, How?
Actually, there is no way to stop creating attachment page in WordPress but, There’s still some ways to make these poor WordPress attachment pages redirect to the parent post or stop Google from indexing WordPress attachment pages.
Stop Google to Index WordPress Attachment Page
Here through this tutorial, I will show you, How to stop Google from indexing WordPress Attachment pages or even remove existing pages from Google’s SERP.
There is a various way you can do that, but Here I have shared a few of them that are most recommended and easy to do. Let’s play with these methods by following the instructions below:
Redirect WP Attachment pages to the parent post
The most recommended and easiest method is redirecting these WordPress attachment pages to the parent post. To do this, We need to have WordPress SEO by Yoast plugin installed. I know that, Most of us already installed Yoast’s SEO plugin. So go through
SEO >> Permalinks from WP dashboard.
In step 2, You will find an option called “Redirect attachment URL’s to a parent post URL.”. Just enable this and hit Save Changes button.
Once you have successfully finished the steps above, Now visit an attachment page URL to see, If it redirects to the parent post.
Block WordPress attachment pages from robots.txt
If you don’t have Yoast’s SEO plugin installed in your blog and even you don’t want to switch to it, You can still stop Google from indexing WordPress attachment page by blocking them using a robots.txt file.
Just copy and paste the following line to your robots.txt:
And hit save button, That’s all!
Now your SERP listing should looks clean and your blog visitor won’t hit on the blank page anymore.
As always, feel free to leave your comments in the discussion box below! And don’t forget to share your question, Thoughts and any other ways you know to remove WordPress attachments from Google index.