What is a sitemap?
A sitemap is a file where you provide information about the pages on your site and the relationships between them.
Search engines like Google read sitemaps to more intelligently crawl your site. A sitemap tells Google which pages you think are important in your site and also provides valuable information about these files: for example, when the page was last updated, how often the page is changed, and any alternate language versions of a page.
Do I need a sitemap?
According to Google:
"If your site's pages are properly linked, Google can usually discover most of your site. Even so, a sitemap can improve the crawling of larger or more complex sites, or more specialized files.
Using a sitemap doesn't guarantee that all the items in your sitemap will be crawled and indexed, as Google processes rely on complex algorithms to schedule crawling. However, in most cases, your site will benefit from having a sitemap, and you'll never be penalized for having one."
You might need a sitemap if:
- Your site is really large. As a result, it's more likely Google web crawlers might overlook crawling some of your new or recently updated pages.
- Your site has a large archive of content pages that are isolated or not well linked to each other. If your site pages do not naturally reference each other, you can list them in a sitemap to ensure that Google does not overlook some of your pages.
- Your site is new and has few external links to it. Googlebot and other web crawlers crawl the web by following links from one page to another. As a result, Google might not discover your pages if no other sites link to them.
- Your site has a lot of rich media content (video, images) or is shown in Google News. If provided, Google can take additional information from sitemaps into account for search, where appropriate.
You might not need a sitemap if:
- Your site is "small". By small, we mean about 500 pages or less on your site. (Only pages that you think need to be in search results count toward this total.)
- You're on a simple site hosting service like Blogger or Wix. If your site is on a service that helps you set up a site quickly with pre-formatted pages and navigation elements, your service might create a sitemap for your site automatically, and you don't need to do anything. Search your service's documentation for the word "sitemap" to see if a sitemap is generated automatically, or if they recommend creating your own (and if so, how to submit a sitemap on your hosting service).
- Your site is comprehensively linked internally. This means that Google can find all the important pages on your site by following links starting from the homepage.
- You don't have many media files (video, image) or news pages that you need to appear in the index. Sitemaps can help Google find and understand video and image files, or news articles, on your site, if you want them to appear in Google Search results. If you don't need these results to appear in Image, Video, or News results, you might not need a sitemap.
How do I submit a sitemap to Google?
Google doesn't check a sitemap every time a site is crawled. A sitemap is checked only the first time that Google notices it and thereafter only when you ping Google to let them know that your sitemap has changed. You should alert Google about a sitemap only when it's new or updated; do not submit or ping unchanged sitemaps multiple times.
There are a few different ways to make your sitemap available to Google:
- Submit it to Google using the Search Console Sitemaps report
- Insert the following line anywhere in your
robots.txtfile, specifying the path to your sitemap:
- Use the "ping" service to request Google to crawl the sitemap. Send an HTTP GET request like this: