I've noticed that when I attach an image to a post, two URLs are generated, not just one:



This leads to duplicate titles in Google Webmaster Tool.

I'm in the process of creating 301 redirects to avoid this but it is painful.

Is it normal behaviour of Wordpress ?

  • There may be a setting somewhere in WP for you to help clean up some of this stuff. I do not know WP at all, but I would prefer that you have a fix to the problem rather than doing redirects which really should be avoided when possible.
    – closetnoc
    May 26, 2015 at 15:43

1 Answer 1


I would use Yoast's SEO plugin to fix this. There is a setting which will redirect image attachments to the parent post. All done for you so no need to do anything manually. Go under Advanced, click Permalinks tab and check the second option:

enter image description here

or you can just setup something in .htaccess file to do the same.

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.