Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @chris2604slvstr

    When you upload an image or other attachment to WordPress, your site automatically creates a dedicated page for that file. In most cases, those pages don’t look great, and can cause ‘thin content’ problems when you have lots of them.

    This is expected behavior (and sounds like what you are experiencing) if you have the ‘redirect attachment URL to attachment itself’ option to ‘no’, as that would mean that the attachment page would generate.

    We recommend setting it to ‘yes’ (so that the attachment page would redirect to the actual attachmen file) and prevent the so-called thin-content. Of course, this would depend on the website (it may make sense to have attachment pages for photography websites), but for most cases, we recommend setting that particular option to ‘yes’.

    You can learn more about it here – https://yoast.com/features/redirect-attachment-urls/

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter chris2604slvstr

    (@chris2604slvstr)

    Hi!

    Sorry for the delay and thanks for your answer.

    At the moment, if I upload an image called wedding.png for example, I will not be able to create a post having the title and the slug equals to “Wedding”.

    In this case, the slug of my “wedding” page would have the slug “wedding-2” because of the image that generate a post with the “wedding” slug.

    It should be great to have a prefix before the images slug. “/media/Wedding” for example, or “media_wedding”. As you prefer, it’s up to you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Image name in url redirect to image attachment link’ is closed to new replies.