WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Dutchintouch
    Member
    Posted 3 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:
    http://eyeamsterdam.com/wp-content/uploads/2010/12/P1150366-1.jpg

    and that anyone who arrived at that link would be redirected to:
    http://eyeamsterdam.com/155/amsterdam-snow-bikes-2

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

    Thanks

  2. lance_kidd
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    @lance_kidd,

    No I never did find out how to fix this.

    Does anyone know?

  4. Joost de Valk
    Member
    Plugin Author

    Posted 3 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
    Member
    Posted 3 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:
    http://dapull.99streets.netdna-cdn.com/i/aa/P1060155.jpg

    would be automatically redirected to the post that picture it is attached to:
    http://www.dutchamsterdam.nl/1482-budget-cuts-hurt-promotion-of-amsterdam

    (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
    Member
    Posted 3 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
    Member
    Plugin Author

    Posted 3 years ago #

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

    http://www.dutchamsterdam.nl/1482-budget-cuts-hurt-promotion-of-amsterdam/P1060155

    is redirected to

    http://www.dutchamsterdam.nl/1482-budget-cuts-hurt-promotion-of-amsterdam

    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

About this Topic