Small SEO Tools

How to Choose Filter URLs for an XML Sitemap

A catalog filter can create a useful landing page, a different ordering of the same products, or a combination nobody intends to promote in search. Review that role before copying every filter address into an XML sitemap.

The XML Sitemap Generator turns a supplied URL list into XML. It does not inspect products, canonical tags or search eligibility. The selection happens in your review of the catalog.

Separate approved landing pages from filter combinations

Start with the site’s intended search pages. A carefully maintained blue-chair collection might deserve its own address and useful content. A price-sort state or every possible color-and-size combination need not receive the same treatment.

Google’s faceted-navigation guidance explains how combinations can expand the crawlable URL space. Decide which filtered pages need to be available to search, then plan the remaining crawl controls separately. A sitemap list alone cannot make that decision for you.

For each approved landing page, check its direct URL, actual product list, HTTP response, indexing instructions and declared canonical. It should supply the intended content without relying on an earlier filter click. Keep a named owner for this list so a new filter does not automatically become a new search page.

Record a decision for each candidate URL

The following is a fictional catalog policy. Its response codes and canonical choices are declared assumptions for this exercise, not measurements of example.com. The owner has approved the base category and the blue-chair landing page for search.

Candidate URL Assumed state Sitemap decision
https://example.com/chairs/ 200, indexable, canonical points to itself Include
https://example.com/chairs/?color=blue Approved blue-chair landing page; 200, indexable, canonical points to itself Include
https://example.com/chairs/?color=blue&sort=popular Ordering variant; canonical points to the approved blue page Omit
https://example.com/chairs/?sort=price Ordering variant; canonical points to the base category Omit
https://example.com/chairs/?color=blue&size=small Interactive filter combination without approval as a search landing page Omit from this approved list
https://example.com/chairs/?color=purple&size=giant No results; returns 404 Omit

The query string on the approved blue page is intentional. Removing every query parameter would discard that chosen landing page. Conversely, different product ordering does not automatically justify another sitemap entry.

For combinations with no results, the faceted-navigation guidance above recommends a 404 response at the requested URL. Confirm the real response before classifying an actual page; a friendly empty-result screen does not establish its status.

Generate from the reviewed list

For this two-page example, the input is:

https://example.com/chairs/
https://example.com/chairs/?color=blue
  1. Paste those two URLs into Paste your URLs (one per line).
  2. Choose Omit changefreq, Omit priority and No lastmod. These keep this example focused on URL membership.
  3. Press Generate Sitemap and check for two URLs, zero invalid lines skipped and zero duplicates removed.
  4. Review the two loc values before using Download sitemap.xml.
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/chairs/</loc>
  </url>
  <url>
    <loc>https://example.com/chairs/?color=blue</loc>
  </url>
</urlset>

As a control, the current generator accepts all six candidate addresses as URL-shaped input and includes all six if you paste the unreviewed list. Its zero-invalid-lines result is not an indexing-policy check.

Google’s sitemap construction guidance recommends listing the preferred canonical URLs you want in search. On a CMS that already generates sitemaps, apply the approved selection through that provider instead of maintaining a competing manual list. The small-site sitemap workflow covers the separate file-generation and publishing steps.

Verify the published catalog policy separately

After implementation, open the actual sitemap and compare its URLs with the approved inventory. Load each included page directly and recheck its content, status, canonical and indexing instructions. Confirm the approved filtered pages remain reachable through useful site navigation.

Also review what happens to the omitted combinations. Google’s sitemap overview states that removing a URL from a sitemap does not prevent crawling or indexing when it is discovered elsewhere. Inclusion also does not guarantee either outcome.

If unwanted combinations require crawl or indexing restrictions, choose and verify those controls as a separate change. Our robots.txt and noindex guide explains their different effects. Keep the sitemap selection, actual page behavior and broader filter policy in agreement when the catalog changes.