How to add rel=”canonical” to PDFs and images

Here is an example of applying HTTP rel=”canonical” to a PDF and a JPG file:

<FilesMatch "Ranger EV.pdf"> 
Header add Link '<http://www.polarisind.in/off-road-vehicles/ranger-ev-utv>; rel="canonical"' <FilesMatch "RZR XP 900.pdf"> 
Header add Link '<http://www.polarisind.in/off-road-vehicles/rzr-xp-4-900-side-by-side>; rel="canonical"'

Leave a Reply