Mobile app version of vmapp.org
Login or Join
Ravi8258870

: Indicate removal of content in sitemap Sometimes we need to remove lots of content from our sites and our current method is to prefix (-) before URL in sitemap to indicate that URL no longer

@Ravi8258870

Posted in: #XmlSitemap

Sometimes we need to remove lots of content from our sites and our current method is to prefix (-) before URL in sitemap to indicate that URL no longer exists.

Is this is a correct method? If it's not, then how can we indicate removed content in a sitemap?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Ravi8258870

1 Comments

Sorted by latest first Latest Oldest Best

 

@Jamie184

A sitemap is designed to be a static map of existing pages to direct a robot. It's not valuable for seeing things that aren't there in the way that it isn't going to call out something that doesn't exist and then say "Oh, don't look at that".

You don't need to specifically indicate that pages are gone, you just need to take 2 steps:


Make sure that those removed URLs are not in the sitemap. This requires you to generate a new one after each round of deletions.
Check that your 301 redirects are in place and correct. I use Screaming Frog to crawl the entire site and turn up any pages that are 404'd (this also calls out internal links pointing to them).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme