seo – URL modified for a page indexed by Googlebot. Will redirect 301 from the old URL to the new one. But what to do with my sitemap?


I plan to change a URL for one of the pages of my site.

Example:

Of: https://www.example.com/old-post-slug

AT: https://www.example.com/new-post-slug

The point is, Google has already indexed the old URL: https://www.example.com/old-post-slug

And from these DOCs, we see that to avoid losing page ranking, we have to answer with a 301 - Moved permanently from the old URL pointing to the new URL.

https://support.google.com/webmasters/answer/6033049?hl=en

enter description of image here

QUESTION

I get that I should redirect (301) from the old URL to the new one. So when Google re-explores, it will see this change. But what should appear on my site map? The old URL or the new one? Or both?

I tend to think that it would be better to keep only the new URL on my sitemap. But what if Google crawls the new URL before seeing the redirect from the old one? Wouldn't the new page URL start as a new page (from a Google index point of view) with zero ranking points? How does Googlebot handle this? What is the recommended practice?