Wordpress - Image Attachment Post vs Page Post Including an Image

bigadon

Newbie
Joined
Jan 23, 2020
Messages
38
Reaction score
9
I have a Wordpress question for you serious SEO experts.

Wordpress has a quirky way of handling media / images / vidoe files. When you add media to a page, upon uploading the media Wordpress automatically created an “attachment page post ” where you can view the image. The “attachment post” is a permanent like to the image. The problem is that this page is also indexed by google.

Example - you post an image with the file name “1234567.png” there will be a corresponding attachment post page called “site-name/1234567.png”

When you add image “1234567.png” to a post called “site-name/you_posted_the_image_to_here/“ google will rank both pages.

how do you disable all media / image / video file “attachment post” pages from the site so google does not index or do you leave them and google can tell which is the proper image page to index?

have you ever had an image “attachment page” out rank a page where the image is posted with content?
 
Google will try to index all URLs that a website feeds into its crawlers, including the image URL, which is just a simple link of locating the resource online.

You can avoid getting your wp-content folder indexed in two ways:
  1. Block it from a sitemap tool (like Yoast)
  2. Use a robots.txt directive to block crawling on images and other content from the wp-content folder (this is where WP holds all your media).
 
You can avoid getting your wp-content folder indexed in two ways:
  1. Block it from a sitemap tool (like Yoast)
  2. Use a robots.txt directive to block crawling on images and other content from the wp-content folder (this is where WP holds all your media).

if you robot.txt block crawlingof images in the up-content folder, won’t google just crawl the image when it’s imbedded in a post and index it that way?
 
Back
Top