• Resolved kevindp

    (@kevindp)


    Is there a way through Yoast SEO to set a PDF to have a canonical HTTP header? I would like to have a canonical link from the PDF to a webpage that has the same content to avoid duplication. I came across this separate plugin, and I’m interested to see if Yoast has similar functionality: https://ww.wp.xz.cn/plugins/canonical-attachments/

Viewing 2 replies - 1 through 2 (of 2 total)
  • MariusG

    (@marius_codeinwp)

    Hi @kevindp,

    The only way to set Canonical HTTP Headers with Yoast SEO would be by editing your .htaccess file from SEO → Tools → File Editor. However, this implies that you know the syntax to the HTTP canonical header.

    If you are not sure how to do it, then using the plugin you have mentioned might be a better solution.

    Thread Starter kevindp

    (@kevindp)

    Thanks. I suggest adding this functionality within the Yoast tool when possible. Canonicalizing PDFs and other docs on an ongoing basis is time-consuming otherwise.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Canonical HTTP Header for PDF’ is closed to new replies.