Title: Canonical HTTP Header for PDF
Last modified: June 7, 2018

---

# Canonical HTTP Header for PDF

 *  Resolved [kevindp](https://wordpress.org/support/users/kevindp/)
 * (@kevindp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/canonical-http-header-for-pdf/)
 * 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://wordpress.org/plugins/canonical-attachments/](https://wordpress.org/plugins/canonical-attachments/)

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

 *  [MariusG](https://wordpress.org/support/users/marius_codeinwp/)
 * (@marius_codeinwp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/canonical-http-header-for-pdf/#post-10393601)
 * Hi [@kevindp](https://wordpress.org/support/users/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](https://wordpress.org/support/users/kevindp/)
 * (@kevindp)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/canonical-http-header-for-pdf/#post-10395451)
 * 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.

 * ![](https://ps.w.org/wordpress-seo/assets/icon-256x256.gif?rev=3419908)
 * [Yoast SEO - Advanced SEO with real-time guidance and built-in AI](https://wordpress.org/plugins/wordpress-seo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-seo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-seo/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-seo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-seo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-seo/reviews/)

## Tags

 * [http-header](https://wordpress.org/support/topic-tag/http-header/)
 * [pdf](https://wordpress.org/support/topic-tag/pdf/)

 * 2 replies
 * 2 participants
 * Last reply from: [kevindp](https://wordpress.org/support/users/kevindp/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/canonical-http-header-for-pdf/#post-10395451)
 * Status: resolved