: Do I need to update the sitemap.xml file after removing some URLs? Do I need to update the sitemap.xml file after removing some URLs from the website and merge three different URLs to a single
Do I need to update the sitemap.xml file after removing some URLs from the website and merge three different URLs to a single one.
For example, three different URLs:
example.com/one.html (main url) example.com/one-yellow.html www.example.com/one-yellow-means.html
and the final merged URL: example.com/one.html.
More posts by @Odierno851
1 Comments
Sorted by latest first Latest Oldest Best
It is recommended to keep a sitemap.xml up-to-date and free of errors*.
If you merge the content of example.com/one-yellow.html and example.com/one-yellow-means.html into example.com/one.html you probably (ideally) redirect them both to example.com/one.html.
Other URLs that have been removed may serve an HTTP status 404 (not foud) or similar.
In order to make crawling your website easy Google recommends to use only URLs in your sitemap that serve HTTP Status 200.
If you have URLs in your sitemap causing errors you can see warnings in your Google Search Console property:
Long story short:
Make sure to 301 redirect your old URLs to your new URL.
Update your Sitemap and delete all URLs that do not serve HTTP 200 directly
*For further possible errors regarding sitemaps see: support.google.com/webmasters/answer/183669?hl=en
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.