No Canonical in HTTP Header
-
It doesn’t appear that the canonical information is affecting my PDF. Both the PDF and the original webpage are still indexed in Google results. I have set up the plugin so that my htaccess file has the following entry:
# BEGIN Canonical 4028
<Files “MyFile.pdf”>
Header add Link “<https://www.website.com/my-webpage/>; rel=\”canonical\””
</Files>
#End Canonical 4028However, when I fetch the PDF as Google in Google Search Console, the downloaded HTTP response reads:
# BEGIN Canonical 4028
<Files “MyFile.pdf”>
Header add Link “<https://www.website.com/my-webpage/>; rel=\”canonical\””
</Files>
#End Canonical 4028HTTP/1.1 200 OK
Server: nginx
Date: THE DATE
Content-Type: application/pdf
Content-Length: NUMBER
Last-Modified: THAT DATE
Connect: keep-alive
Keep-Alive: timeout=20
ETAG: “SOME NUMBER”
X-Type: static/known
Cache-Control: public, max-age=SOMENUMBER
Vary: Accept-Encoding
Access-Control-Allow-Origin: *
Accept-Ranges: bytesFollowed by garbled text from the PDF.
- The topic ‘No Canonical in HTTP Header’ is closed to new replies.