How to create a sitemap that helps search engines and users

A sitemap is a machine-readable map of the pages on a website. By listing important URLs, it gives search engines a clear inventory to discover, crawl and evaluate. It can improve the path from a new page to the rest of the site, but it does not create content, guarantee rankings or replace strong internal links. A useful file also reflects the structure visitors actually encounter.

The strongest sitemap serves two audiences. Search engines need valid, canonical URLs, while readers need straightforward routes to useful information. That means planning the site first, choosing the correct format, removing duplicates and keeping the published file current as content changes.

Plan the site before writing the file

Begin with an inventory of public, indexable pages: home pages, service pages, articles, product listings and location pages that have distinct content. Assign each item one preferred URL and note which template it uses. This simple matrix reveals duplicates before they reach the XML file and shows whether important sections are too deeply buried for crawlers or readers to reach naturally.

Next, compare the planned URLs with the site’s navigation, footer and contextual links. Every essential page should have at least one meaningful internal link, and closely related content should be linked with descriptive anchor text. A clear, logical hierarchy makes both crawling and browsing easier. It also reveals “orphan” pages that exist in the CMS but cannot be reached through ordinary navigation.

Choose the right sitemap format

An XML sitemap is the usual choice for search engines. A single sitemap is an XML file containing a <urlset>; a sitemap index points to several smaller files, which suits large ecommerce catalogues, multi-location websites or separate content systems. Google Search Console and Bing Webmaster Tools can process both forms. Media sites may also need dedicated image, video or news sitemaps when eligible content is not adequately represented in the general URL list.

For Australian businesses, the inventory should account for the domain and market being served. A .com.au website with pages for Sydney, Melbourne and Brisbane may need one sitemap file or a sitemap index organised by section, but each city URL should represent genuinely distinct information rather than a doorway page. The same rule applies to product variants, campaign landing pages and archived material: include a useful canonical version and exclude repetitive URLs.

Create clean and stable XML

A valid XML sitemap starts with the XML declaration and the Sitemap protocol namespace. Each <url> entry contains an absolute <loc> value and can include a truthful <lastmod> value. The location is written in full, including the protocol and domain, while the namespace confirms which schema the file follows. This small structure makes the document straightforward for parsers to read.

Every listed URL should be a stable, indexable page that returns a successful response. List the preferred canonical URL, not redirected alternatives or duplicate query-string versions. Exclude pages marked noindex, soft 404s, missing pages and private areas. Special characters in a URL must be encoded correctly, and an ampersand in a query string must appear as &amp; in XML.

Treat <lastmod> as meaningful maintenance data rather than a daily refresh button. Use an accurate ISO 8601 date and change it only after a significant content update; false timestamps reduce trust and provide no indexing benefit. Each sitemap file is limited to 50,000 URLs or 50 MB uncompressed, so large sites should split the inventory and use a sitemap index. Compression can reduce transfer time without changing those limits.

Connect the sitemap to search engines

Publish the sitemap at a predictable location such as /sitemap.xml, then add its absolute URL to robots.txt with a Sitemap: directive. The directive helps discovery but does not override robots rules or request indexing of blocked URLs. Submit the file in Google Search Console and Bing Webmaster Tools, then use URL Inspection on a sample of key pages. For an Australian site, those tools provide coverage data across the search engines with the greatest practical visibility.

Create a launch checklist that names the sitemap owner, the CMS source, the publishing schedule and an escalation path. Direct communication channels, including those provided through SpeedTao contact resources, can help teams settle ownership questions before deployment. Record whether the file is generated automatically or uploaded manually, because automation reduces missed releases when editors add, move or retire pages.

Monitoring should compare submitted URLs with indexed or processed results and investigate unexpected exclusions. A sudden rise in redirects, “discovered – currently not indexed” notices or removed pages can indicate a template, canonical or server issue. Keep the sitemap and the website’s actual content aligned; a technically valid file that points to stale material still sends weak signals.

Keep navigation clear for visitors

An XML sitemap is primarily for software, so most visitors will not open it. That is why internal links, breadcrumbs and related-content modules remain central to user navigation. An HTML sitemap can provide a visible directory on large or highly structured sites, especially where visitors arrive from search results without knowing the organisation’s menu. Both formats should use understandable labels and descriptive link text.

Clear guidance reduces hesitation at decision points, whether a reader is looking for a service in Melbourne or learning how to use a foreign transport network. The Istanbul metro etiquette guide offers a useful example of grouping practical instructions around a clear journey, a principle that also applies to links organised by task rather than internal department.

For Australian audiences, copy and labels should use Australian English, such as “organisation”, while on-page dates should use a day-first format such as 08/03/2025. Prices in AUD need consistent formatting. City and service pages should name the relevant area and avoid duplicated national copy, helping both local readers and search engines distinguish the destination from nearby locations.

Validate, publish and maintain the file

Validation should happen before publication and after every major content migration. XML parsers, Search Console and browser-based checks can identify malformed tags, missing locations and encoding errors. Test several URLs from the live site, including one with a query string if those pages are included. Confirm that the sitemap endpoint returns the XML itself rather than an HTML error page.

Before publication, check the essentials:

After publication, monitor the following:

A sitemap remains valuable only while it mirrors the live website, uses stable addresses and is easy to retrieve. Accurate maintenance keeps discovery signals consistent and gives both crawlers and visitors a dependable map of the site.