Mobile app version of vmapp.org
Login or Join
Cooney921

: What is the correct format and attributes for adding a PDF to an XML sitemap? I have found numerous questions and blogs about including PDF files in an XML sitemap but cannot find a single

@Cooney921

Posted in: #Pdf #Sitemap #XmlSitemap

I have found numerous questions and blogs about including PDF files in an XML sitemap but cannot find a single one that gives a working example or which attributes to use:

What document types can be included in an XML sitemap?

Should I include PDF files in my sitemap.xml

On Google's Sitemap Guide it states:


The following table outlines the tags required for Sitemaps listing web URLs. To add more detailed information about specific content types, see video, images, mobile, News, and software source code.


Should .PDF be treated as a regular URL or News or is this out of date and there is one specifically for .PDF files?

Most of my PDFs are not news but brochures, case studies, and high resolution image files... speaking of should the high resolution image files be treating with <image:image> then set the <image:loc> to the .PDF?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Cooney921

1 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

Yes, you treat a .PDF as a regular URL. Googlebot crawl's PDF's just like any HTML page. You can see Google's own sitemap to verify that they do it the same way themselves.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme