URLs · Query strings

Query string has over three parameters

This page links to itself with four filter parameters, the kind of address faceted navigation creates in huge numbers.

How this page is built

The link below points to this page with ?colour=red&size=large&brand=acme&material=cotton added to its address. The server ignores the query string and returns this same page.

See this page filtered by colour, size, brand and material.

Each filter added to a listing page multiplies the number of possible addresses, because every combination and every order creates a new URL.

The canonical on both versions points to this page's address without the query string.

Why it matters

Long query strings usually come from filters or faceted navigation. Every combination of filters creates a different address, and the number of combinations grows very quickly.

Search engines can spend a large share of their crawling on these near-duplicate pages, and few of them are worth indexing.

How to check it

Export every URL from a crawl and count the parameters in each. Group them by parameter name to see which filters create the most addresses.

How to fix it

Decide which filter combinations deserve their own indexable pages. Keep the rest out of the crawl, for example by using buttons instead of links, adding a canonical to the unfiltered page, or blocking the pattern in robots.txt.

Back to all tests