0

I have one page that has one pdf on it, with the same content. The pdf is served from Amazon AWS S3, how can I add the rel canonical to the S3 to avoid duplicate content? thanks!

EDIT

And with cloudfront can I do this?

fabrigm
  • 648
  • 1
  • 6
  • 14

1 Answers1

0

You’d have to send the HTTP header Link when delivering the PDF:

Link: <http://example.com/your-canonical-page>; rel="canonical"

https://www.rfc-editor.org/rfc/rfc5988#section-5

Amazon S3 seems to offer static content hosting only, so there is no way to set this header.

Community
  • 1
  • 1
unor
  • 92,415
  • 26
  • 211
  • 360
  • How can I do this with Amazon S3? Thanks! – fabrigm Nov 27 '13 at 23:53
  • @user1763732: If *Amazon S3* doesn’t support any kind of programming language (e.g., PHP) or `.htaccess` or similar ([which doesn’t seem so](http://stackoverflow.com/a/14095879/1591669)), you can’t. – unor Nov 28 '13 at 13:43