Faceted Navigation SEO: Keeping Store Filters Under Control
Faceted navigation is the set of filters on a shop or listing page, such as colour, size and price. Each combination can create a new URL, so a small catalogue can turn into thousands of near-identical pages. Google suggests blocking filter URLs you do not need in search with robots.txt, and keeping the rest consistent.
| Approach | What it does | Good for |
|---|---|---|
| robots.txt disallow | Stops Google crawling those filter URLs | Filters nobody searches for: sort, price slider, in stock |
| URL fragments (#) | Filters live after the #; Google generally does not crawl fragments | New builds where you control the code |
| rel=canonical | Points filtered pages to the main category; may reduce crawling of them | Filtered views close to the category |
| rel=nofollow on filter links | Hints not to follow; must be on every link to that URL | A supporting measure only |
| Keep indexable | Consistent URL, & separator, fixed order, 404 when empty | Filters people do search for, like a colour or brand |
Updated
Filters are good for shoppers and risky for crawling. Google calls the result an infinite URL space and says it leads to overcrawling and slower discovery of new pages. Use the planner below to list your filters, mark the ones worth a search result, and get robots.txt lines for the rest.
Filter URL planner
Category path: /collections/dresses
Filter parameter names, one per line
color
size
sort
price
in_stockKeep in search? (tick filters people search for)
- color
- size
- sort
- price
- in_stock
URL shape for kept filters (fixed order)
/collections/dresses?color={value}robots.txt lines for the other filters
User-agent: *
Disallow: /*?size=
Disallow: /*&size=
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?price=
Disallow: /*&price=
Disallow: /*?in_stock=
Disallow: /*&in_stock=Copy robots.txt lines
Which filters deserve a search result
| Filter | Usually | Reason |
|---|---|---|
| Brand | Keep | People search for brand plus product type |
| Colour | Keep for main colours | Searches like black boots are common |
| Size | Block | Results change with stock; few size-only searches |
| Price range | Block | Endless combinations, little search demand |
| Sort order | Block | Same products, different order |
| In stock only | Block | Temporary, changes daily |
Code examples
robots.txt for sort and price filters
The * wildcard matches any path. Two lines per parameter catch it whether it comes first after ? or later after &.
User-agent: *
Disallow: /*?sort=
Disallow: /*&sort=
Disallow: /*?price=
Disallow: /*&price=Canonical on a filtered view
In the head of /collections/dresses?size=m. Only use this on URLs you have not blocked in robots.txt, so Google can read it.
<link rel="canonical" href="https://example.com/collections/dresses">
Why filters multiply so fast
Take a shop with 6 colours, 5 sizes and 4 sort orders on one category. Picking one of each alone gives 6 x 5 x 4 = 120 URLs, before price ranges or multiple selections. Across 20 categories that is 2,400 addresses for what is really 20 pages.
Search engines have to spend time on each one before they can decide it is a duplicate, and new products wait longer to be found.
What hosted shop builders do for you
Your platform may already ship rules. Open yoursite.com/robots.txt and look for lines that mention filter or sort parameters, and view the source of a filtered page to see whether it already carries a canonical tag, before adding anything of your own.
How it works
- Type your filter parameter names as they appear in your URLs, one per line, such as color or sort.
- Tick the filters that match things people actually search for, for example a brand or colour.
- The planner writes robots.txt Disallow lines for every unticked filter, covering it as the first or a later parameter.
- It also shows the single URL shape to use for kept filters: fixed order, & between them, no duplicates.
Tips
- Test your new rules in a robots.txt tester before you upload them, so you do not block the category pages themselves.
- Never block a filter URL in robots.txt and also expect its canonical tag to be read. Google says it cannot index the content of pages that are disallowed for crawling, and that includes their tags.
- Return a real 404 when a filter combination has no products, as Google recommends, instead of an empty page with a 200 status.
- If a filtered view deserves to rank, such as red dresses, consider making it a proper category page with its own title and text.
Frequently asked questions
What is faceted navigation?
It is the filter panel on a category or search page that lets visitors narrow results by properties such as size, colour, brand or price. Each filter usually adds a parameter to the URL, like ?color=red&size=m.
Should filtered pages be indexed?
Mostly no. Keep a filter crawlable only when it matches a real search with demand, and make sure that page has unique, useful content. Sort orders, price sliders and stock toggles almost never need a search result of their own.
Is robots.txt or canonical better for filters?
Google's faceted navigation page lists robots.txt first for filter URLs you do not need in search, because it stops the crawling itself. A canonical tag still lets Google crawl the page, and Google describes it as possibly decreasing, not stopping, crawling of the other versions.
Does the order of filters in the URL matter?
Yes. Google asks that the logical order of filters always stays the same and that no duplicate filters can exist. Otherwise ?color=red&size=m and ?size=m&color=red are two URLs for one page.
Related: Robots.txt generator, Robots.txt tester, Canonical tag checker, Ecommerce SEO guide, Keyword cannibalization.
Build your site free or see all free tools. On We.Inc you can build your site free, with no card and no trial needed to start. AI building is on paid plans from $19 a month.
More in Guides
- TypeError: Failed to fetch: What Blocked the Request
- FAQ Page Examples and a Template You Can Copy
- How to Write FAQ Pages That Get Cited by AI Answers | How-to Guide
- FastAPI WebSocket: Endpoints, Broadcasting and Testing
- Favicon Sizes and the Code to Add Them
- Figma to Code: Three Ways, and a Free CSS to Tailwind Converter
- Filesystem MCP Server: Give an Assistant Safe Access to Your Folders
- Firebase Pricing
Product
Who It's For
- For Agencies
- For Freelancers
- For Hosting Providers
- For SaaS Platforms
- For Startups
- For Financial Services
- For Healthcare
Features
Resources
- Blog
- Help Center
- Free Business Tools
- Free UI Components
- Website Templates
- Template Collections
- Website Examples
- Guides
- Comparisons
- Alternatives
- Best Lists
- Reviews
- Pricing Guides
- Use Cases
- Glossary & Guides
- Integrations
- Developers
- Benchmark
- Windows App