Should I list PDFs in my sitemap file?

做~自己de王妃 提交于 2019-12-12 10:29:39

问题


Should I add PDFs to my XML sitemap?

I want to know if Google will crawl the PDFs.


回答1:


Yes, Google crawls PDFs.

See the Search Console Help article for a list of file types indexed.




回答2:


Absolutely! If you have "separate pages" that make up the whole of your website, you would be better off to include these pages on your XML site map. Remember that the purpose of the XML site map is to help search engines understand what content is available on your website - PDF's included!

Don't forget to optimize your PDF's for better results!




回答3:


The sitemaps standard specificaton does not limit the content types of items in the maps. You can find a link to the list of content types supported by Google in John Skeet's answer.

There's currently no need (and no way) to specify content type in sitemaps, so add it like any other page. If it changes, specification on sitemaps.org will probably be updated first.

Currently Google has such PDF entries in its own sitemap.xml file.



来源:https://stackoverflow.com/questions/1072880/should-i-list-pdfs-in-my-sitemap-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!