Every filter combination opens at its own URL (/catalog/color-white/brand-nike/), but only the pages you choose with SEO rules are offered to search engines. Other combinations get noindex,follow and a canonical to the catalog page — no junk duplicates in search indexes.
A rule (SEO tab) says: "for these catalog pages, create landing pages from the values of these filters". For example, a "Color + brand" rule for a clothes catalog gives /catalog/red/nike/, /catalog/blue/adidas/ and so on — one page per combination that has products. Rule pages have their own title, H1, description and text.
The short URL format (default) gives /catalog/red/; keyed gives /catalog/color-red/. The latter preserves existing mFilter landing page URLs: custom texts are found by the full keyed path, canonical points to that URL and there is no redirect to the short one.
[[!BitFacetSeo]] first in <head> of the catalog template, with the same &set as [[!BitFacet]], and output the placeholders:
[[!BitFacetSeo? &set=`auto`]]
[[!+bitfacet.title:default=`[[*pagetitle]]`]]
[[!+bitfacet.h1:default=`[[*longtitle:default=`[[*pagetitle]]`]]`]]
[[!+bitfacet.text]]
[[!BitFacet? &set=`auto`]]
Sitemap: https://your-site/bitfacet-sitemap.xml.The rule fields title, H1, description and text are templates with substitutions:
{pagetitle} {longtitle} {menutitle} {description} | catalog page fields |
{count} | products on the rule page |
{values} | all values separated by spaces |
{ms:color}, {ms:vendor} … | caption of the filter value (key as in the set) |
|lower, |ucfirst | letter case: {ms:color|lower} |
Example for the "Color + brand" rule in the Sneakers section:
title: {ms:vendor} {ms:color|lower} {pagetitle|lower} — buy online
H1: {ms:vendor} {ms:color|lower} {pagetitle|lower}
description: {count} {ms:vendor} models in {ms:color|lower}. Free delivery.
text: The catalog has {count} {ms:color|lower} {pagetitle|lower} by {ms:vendor}.
Text is HTML; values substituted into it are escaped.
bitfacet.title, bitfacet.h1, bitfacet.description, bitfacet.text | rule page texts (empty on other pages — :default works) |
bitfacet.robots, bitfacet.canonical | what the snippet already output in <head> |
bitfacet.count | products on the rule page |
The snippet outputs <meta name="description">, <meta name="robots"> and <link rel="canonical"> itself with data-bitfacet-seo marker attributes. Without a filter in the URL it outputs nothing.
Filtering, sorting, pagination, "Show more", reset and browser Back/Forward update document.title, the H1 and SEO text marked as in the example above, and the description, robots and canonical output by BitFacetSeo. Independent template tags without these attributes are left untouched and no duplicates are created.
For the regular catalog, title comes from pagetitle; H1 comes from longtitle, falling back to pagetitle. Empty description and rule text clear only the dynamic block. Keep static site text outside data-bitfacet-seo="text", otherwise resetting the filter will remove it. Without H1/text markers the script does not guess other blocks: only title and head are updated.
Successful PHP endpoint and turbo responses keep success, html, total, url and add the meta field:
"meta": {
"title": "Fireplaces with glass",
"h1": "Fireplaces with glass",
"description": "137 fireplace models with glass.",
"text": "137 models in the catalog.
",
"robots": "index,follow",
"canonical": "https://example.com/fireplaces/has_glass-1/",
"count": 137
}
The same data is available as event.detail.meta in bitfacet:loaded; "Show more" still has detail.append === true. For an unfiltered catalog, empty robots and canonical remove only the component's dynamic tags and preserve the template's original tags.
| Rule page with products (and its pages 2, 3…) | index,follow, canonical to itself |
| Rule page with sorting | noindex, canonical without sorting |
| Rule page without products | 404 |
| Any other filter combination, ranges, search | noindex,follow, canonical to the catalog page |
Filter in parameters (?f[…], old links) | 301 to the path URL |
The sitemap /bitfacet-sitemap.xml is built on request: only pages of rules marked "In sitemap" that have products, without pages excluded from indexing, up to 50,000 URLs; each context lists its own pages.