• Resolved pingbara

    (@pingbara)


    Hi

    Is there anyway to Redirect attachment URLs to the attachment itself for only some images ?

    I understand the idea of why we should not have attachment pages available on the websites as it might create a lot of thin content especially if the website has thousand of images.

    However, I need only some images to still have the attachment pages. But by setting the [Redirect attachment URLs to the attachment itself to “YES”] it will eliminate all the attachments page of every images

    Thanks

    • This topic was modified 3 years, 10 months ago by pingbara.
    • This topic was modified 3 years, 10 months ago by pingbara.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @pingbara ,

    As you want to do the redirection on some images only, you may want to implement the wpseo_attachment_redirect filter on your setup to see if this will allow you to redirect attachment URLs on the attachment itself on some images. You can find additional information about the filter can be found here.

    Hope this helps!

    Thread Starter pingbara

    (@pingbara)

    I am new to wordpress, i cannot understand at all above the word “filter” anyway I will try to study.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Redirect attachment URLs to the attachment itself for only some images’ is closed to new replies.