SEO

XML Sitemaps: What They Are and How to Submit One

What an XML sitemap does, which pages to include and how to submit it to Google Search Console.

AMAMJAM Solutions teamRewari, Haryana 28 Apr 20263 min read
Person checking a search performance report on a laptop
On this page

    An XML sitemap is a list of the important pages on your website, written for search engines. It helps Google discover pages, especially on new sites or large sites.

    What to include

    • Pages you want to appear in Google.
    • Only the canonical version of each page.
    • Pages that load correctly (no redirects or errors).

    What to leave out

    • Thank-you pages, login pages, cart and checkout.
    • Pages with noindex tags.
    • Duplicate or filtered URLs.

    How to create one

    • WordPress: SEO plugins and WordPress itself generate sitemaps automatically.
    • Shopify: creates one at /sitemap.xml automatically.
    • Custom sites: use our sitemap generator or a build script.

    Submit it to Google

    1. Open Google Search Console.
    2. Go to Sitemaps.
    3. Enter your sitemap URL and submit.
    4. Check back for errors and the number of discovered pages.

    Add it to robots.txt

    Add a line like Sitemap: https://www.example.com/sitemap.xml; our robots.txt generator includes it.

    A sitemap is not a guarantee

    Google still decides what to index based on quality. A sitemap helps discovery, not ranking.

    Read how to get pages indexed.

    Want the full picture? This article is part of SEO: the complete guide, our in-depth guide with everything in one place.

    AM
    Written by the AMJAM Solutions team

    Our specialists handle SEO for businesses across India from our office in Rewari. We update our articles as platforms change.

    Free strategy call

    Find out where your next customers will come from

    Tell us a little about your business. We'll set up a 15-minute call and come prepared with first ideas.

    • No obligation and no sales script
    • Speak with a strategist, not a call centre
    • Leave with at least one thing you can act on

    We use your details only to arrange this call. See our privacy policy.

    Get a free 15‑minute strategy call

    Leave your details and a strategist will call you, usually the same working day.

    We use your details only to reply. See our privacy policy.