- First decide which format of sitemap you wanna use i.e. XML, RSS, mRSS, Atom 1.0 and text.
- Create the sitemap either automatically or manually.
- Make your sitemap available to Google by adding it to robots.txt file or directly submitting it to Search Console.
General Guidelines:
- Use consistent, fully-qualified URLs- Redirected to one version of the site & use only one format in the sitemap.
- UTF-8 encoded- Sitemap must be UTF-8 encoded and URLs escaped appropriately.
- Break up large sitemaps- A sitemap can contain up to 50,000 URLs and must not exceed 50MB.
- Alternate pages for different languages or regions- In this case use hreflang in either a sitemap or html tags to indicate the alternate URLs.