Support » Plugin: Yoast SEO » Include PDF in sitemap

  • Resolved metronomi

    (@metronomi)


    Hello Yoast team,

    Firstly thanks for the amazing plugin !

    I have issue with adding PDF files to the sitemap. Either attachment or page sitemap.
    I have read some of your post and other topic about this but can’t find a good solution to index only certain PDF.

    Can you help me with this ?

    Thank a lot !

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @metronomi,

    We understand that you will like to noindex certain PDF files. However, individual media files like PDF files, cannot be “noindexed” using the Yoast SEO plugin. This is because, when you directly access these files, they are not served through WordPress.

    To “noindex” PDF files, please look into using the “X-Robots-Tag”. We have an article explaining what this tag is and some examples on how to use it to noindex PDF files. You can find the article here.

    Thanks.

    Thread Starter metronomi

    (@metronomi)

    Thanks for the quick answer !

    I would first like to add pdf to my attachment sitemap because i don’t see how to add them in this sitemap ?

    http://enov.fr/attachment-sitemap.xml

    If i correctly understand i can’t add certain pdf to the sitemap, but i can add all of these type of media (pdf) in the sitemap ?

    Plugin Support Maybellyne

    (@maybellyne)

    @metronomi,

    Yoast SEO doesn’t include links to PDF files in the XML sitemap. However, if a link to the PDF file is not included in the sitemap, Google will be able to discover it when crawling the page where it’s embedded. So, you don’t have to worry about Google not being able to find the pdf files on your website.

    Thanks

    Thread Starter metronomi

    (@metronomi)

    Ok i get it !

    Thanks a lot

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Include PDF in sitemap’ is closed to new replies.