Attachment URLs issue in Blog

Hello All,

I am working on Blog which is WP site. I have faced alot of attachment URLs issue which cause by adding media files.

So i have installed plugin for 301 redirection which is working good. My question is should i have to add no index tag in all my attachment URLs from wordpress admin? or just plugin for 301 redirection is fine enough.

Please answer.

Hi shobee!

I’d like to help you out but I have some questions as I didn’t quite understood your post 100% :

I’ll guess something and if it’s not right, you can answer my questions at the end of this post so that we can help you:
From what I understood, you uploaded some images or movies and WP had some problems. So, you had 404 in your Website, meaning that some links didn’t work.

If you have those 404 for quite a while and saw them in, for example, Google webmaster tools, you should probably add a 301 redirection if possible.
If you just had the problems (like today or yesterday), don’t bother using a 301 plugin, just fix your links.

If I didn’t understand your problems, please answers those questions so that I can help you:

  • What do you mean by “attachment URLs”? Do you mean images? Movies? A link to another page? Something else?
  • Can you describe what are the “attachment URLs issues” you are facing? 404?
  • What is the context of your project? Why do you think you’re getting those issues? Did you just upgraded WP? Another plugin?
  • The link you gave doesn’t seems to work. Do you have another link to share?

Good luck!

Thanks for your response and let me define more about my problem.

Yes you right that issue comes through while uploading pictures in my post. But i am not facing 404 page.
Attachment URLs are the image url of that same post of mine so Google consider it with duplicate content

Check status in Google

I have already added 301 redirection and my attachment urls are moved into original post. But still most of them showing in Google index. So what if i will also add rel=nofollow tag with 301 redirection as well?

Make some sense?

When you say attachment URLs you’re talking about image URL right? I saw that “attachment URL” is a method in WordPress, is that what you meant?
I still don’t get how images and duplicate content are related. I don’t think that showing the same image on multiple page is a problem for Google if it’s what you meant?

But for duplicate HTML pages in WordPress, here’s what I found (by the way, I’m not an SEO specialist):
There’s a great article here: https://yoast.com/articles/duplicate-content/

Also, one of the way to tell Google “hey dude, here’s the real page, this one is just a copy” is by using the “canonical” tag like this:

<link rel="canonical" href="http://mysite.com/original-page/"/>

I would not personally use a 301. A 301 is to redirect to another page when a page has moved, it’s not for duplicate content.

To improve the SEO features of my WP blog I used this plug-in: https://yoast.com/wordpress/plugins/seo/

It’s working great and according to this page: https://yoast.com/wordpress/plugins/canonical/ it supports canonical too.

Did this helped you? :wink:

Wow. Thanks for your response and great information in article link too. I am using All in Seo pack currently so do you think if i moved on Yoast so it will not create any problem or not found links ?

I checked “all in one SEO pack” and there seems to have a canonical option too.

Check this page http://www.wpbeginner.com/plugins/users-guide-for-all-in-one-seo-pack/ under the title “How to Set up All in SEO Pack”.

I don’t know if it would fix all your problems with Yoast or not. Also, if you are already using “all in one seo pack” options (like meta tags for your post) and you switch to another plug-in, it’s possible that you will lose some information. I wouldn’t switch without testing it in a “test environment” first :wink:

@xMag Thanks a lot for your help and information that you share very helpful. Will you please help me on this matter ?