How to submit your sitemap to Google

Open Google Search Console, choose Sitemaps, paste your sitemap's address and click Submit. Most builders make the sitemap for you, usually at /sitemap.xml. Then add one line to robots.txt that says where the sitemap is, so other search engines can find it too.

By Ethan Stoner, web designer. Published .

What the two files do

A sitemap is a list of your pages. It helps Google find them, though it doesn't guarantee they will be listed. Google counts a site of about 500 pages or fewer as small, and a small site whose pages all link to each other may not need one. A new site with few links to it is more likely to.

robots.txt tells crawlers which addresses they may open. It isn't a way to hide a page: Google can still list a blocked address if other sites link to it.

Find yours

  1. Open yourbusiness.com/sitemap.xml. You should see a list of addresses, or a list of more sitemaps.
  2. If it isn't there, open yourbusiness.com/robots.txt and look for a line that starts with Sitemap:.
  3. Check that the list has your real pages, with the same https:// address customers use, and none you deleted.

Submit it

  1. Sign in to Google Search Console and choose your site. You need owner access.
  2. Open Sitemaps, paste the full address under Add a new sitemap and click Submit.
  3. Come back later and read the status. Success means Google read it. Couldn't fetch means Google couldn't get the file, for example because it's blocked, missing or the server had a problem.

If you edit a sitemap by hand, keep the last changed dates true. Google uses them only when they are accurate, and it ignores the priority value.

Fix a missing sitemap or robots.txt

sitemap.xml

About 15 minutes

  1. Make sure yoursite.com/sitemap.xml loads and lists your pages. Most builders and SEO plugins make one for you.
  2. Add a Sitemap: https://www.example.com/sitemap.xml line to robots.txt.
  3. Submit the sitemap in Google Search Console under Sitemaps.

robots.txt present and lets Google load CSS and JS

About 10 minutes

  1. Make sure yoursite.com/robots.txt loads and doesn't block CSS or JavaScript files (no Disallow lines for theme, script or style folders).
  2. A simple file is enough: User-agent: *, Disallow: and a line pointing at your sitemap, such as Sitemap: https://www.example.com/sitemap.xml.
  3. If it returns a server error, ask your host to fix it, because Google may pause crawling until it loads.

When to ask for help

Ask if the sitemap shows an error instead of a list, if it's full of addresses you don't know, or if robots.txt has lines nobody remembers adding. A wrong line there can keep a whole site out of search.

Ethan Stoner, who makes WebCheckup, also fixes small-business sites. Ask for a quote.

What WebCheckup checks

The checkup runs these checks on this subject. Each link goes to its place in our full list.

Sources

The builder steps are the ones in our reports, written from each builder's own help pages. Menus change, so a label may have moved.

Check your site.

The free checkup looks for this and the rest of our list, and puts the problems in order.