Yoast SEO
[resolved] [Plugin: WordPress SEO by Yoast] Redirect attachment URL's to parent post URL.? (7 posts)

  1. Dutchintouch
    Posted 5 years ago #

    Hi Yoast,

    I have this option checked:
    "Redirect attachment URL's to parent post URL."

    I thought that would prevent this from happening:

    and that anyone who arrived at that link would be redirected to:

    Do I understand that correctly? If so, why is it not happening?


  2. lance_kidd
    Posted 5 years ago #

    If you find some help on this, please let me know. I have a .pdf file in a couple of my posts and they are getting first page google rankings ahead of the actual post. I have the Robots Meta plug-in too, and thought this crap wasn't suppose to happen.

    The .pdf is ranking ahead of the post with some bull crap that I can't even control.

  3. Dutchintouch
    Posted 5 years ago #


    No I never did find out how to fix this.

    Does anyone know?

  4. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    It's not a hot link fixer in any way. Search for that "prevent hot-link image" in Google and you might get further.

  5. Dutchintouch
    Posted 5 years ago #

    I'm not necessarily trying to prevent hot-links. Rather, I am trying to understand what this feature on the Permalinks Settings page actually does:

    ===Begin Quote===
    [] Redirect attachment URL's to parent post URL.

    Attachments to posts are stored in the database as posts, this means they're accessible under their own URL's if you do not redirect them, enabling this will redirect them to the post they were attached to.
    ===End Quote===

    The way I read that, it looks like someone who happens upon this link:

    would be automatically redirected to the post that picture it is attached to:

    (The domain names are different due to use of a CDN).

    That would be a fantastic feature. But if checking the "Redirect attachment URL's to parent post URL" option does not accomplish this, what does it do?

  6. jeremyers1
    Posted 5 years ago #

    I have the same question. Anybody know what it does do? I thought it would do the same thing that Dutchintouch thought it would do...but it doesn't.

    I also cannot figure out what it does do. Anybody?

    And by the way, Yoast, how about adding the option that Dutchintouch proposes.

    For example: This attachment page: http://www.tillhecomes.org/wp-content/uploads/2011/06/popularity_contest.gif

    Would redirect to the page it is actually on: http://www.tillhecomes.org/pastoral-popularity/

  7. Joost de Valk
    Plugin Author

    Posted 5 years ago #

    An attachment in WP has its own URL too, which you can link to, so in the first example:


    is redirected to


    because this feature is enabled. It doesn't handle the URL of the images themselves as that would cause a circular redirect when you open the post.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic