“exclude image from sitemap” not having the desire effect

#78105
  • Resolved Simon Carne
    Rank Math free

    I have checked the box “exclude image from sitemap” on several images, but they are still appearing in the attachment-sitemap.xml. What am I doing wrong?

    To give you the full background: I have various PDF attachments that I want to include in the sitemap but I don’t want images to be included. So I have done all of the following (and “saved” each one):

    – In Sitemap Settings/Attachments, I have turned ON “Include in Sitemap”.

    – In Sitemap Settings/General, I have turned OFF “Images in Sitemaps”

    – In each individual image, I have checked the box “exclude image from sitemap”

    • This topic was modified 4 years, 1 month ago by Simon Carne.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    The option to exclude images from sitemap usually keeps them from being included in their referenced posts in sitemap:
    img

    To ensure they are not indexed, in which case they will be automatically excluded from sitemap, you can set them to noindex in Rank math metabox under Advanced Tab by editing the individual images in the media library.

    imgg

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Thanks, but when I go to the Edit screen for my images, there is no Rank Math section. What can I do to get it to appear?

    Hello,

    I you can see the option to edit more detail, you can click on the same:
    img

    Another way to exclude all your images from indexing would be to keep bots from crawling them by adding the following to your robots.txt

    Disallow: *.jpg
    Disallow: *.png
    Disallow: *.gif
    

    Looking forward to helping you. Thank you.

    ​​​​​​

    It’s puzzling that RankMath doesn’t produce the metabox on my site in the way that you indicate. Thank you for your suggestion that I use the robots.txt file.

    Hi Simon,

    We are glad to be of help.

    If you need help with anything else, please open a new support ticket here so we can help.

    We are always here for assistance.

Viewing 5 replies - 1 through 5 (of 5 total)

The ticket ‘“exclude image from sitemap” not having the desire effect’ is closed to new replies.