Draft a parameter handling rules table for search/listing/filters with crawl policies.
- User
Draft a parameter handling rules table for search/listing/filters with crawl policies.
Assistant
Draft a parameter handling rules table for search/listing/filters with crawl policies.
The user wants a "parameter handling rules table for search/listing/filters with crawl policies."
This is a technical SEO request. The goal is to determine how URL parameters (like ?sort=price, ?page=2, ?color=red) should be treated by search engine crawlers (Googlebot, Bingbot, etc.) to prevent duplicate content, crawl budget waste, and index bloat.
Target Audience: SEO specialists, web developers, technical product managers.
Key Components of the Table:
rel="canonical" tag.Categories of Parameters:
page, p, start.sort, order, dir.color, size, brand, price_min.q, search, query.sessionid, utm_source, ref.view, layout.Drafting the Policies:
rel="next"/"rel="prev" (though Google deprecated the tag, they still use the concept internally, and Bing/Yandex use it). Best practice now: Canonical to self (component page) or noindex on page 2+. Let's stick to modern standard: Canonical to self (to prevent parameter stripping issues) but often noindex, follow on page 2+ to preserve crawl budget for core products. Wait, actually, Google advises against noindex on pagination now. It's better to let them crawl but maybe use parameter handling in GSC. Let's recommend: Canonical to self, Allow crawl, use rel="next/prev" (for Bing/Yandex).noindex, follow or block via robots.txt if infinite combinations exist.?q=shoes.
noindex. Search results pages are often considered low quality by Google.?utm_, ?sessionid.
Structure of the Output: I will create a comprehensive table followed by a "Rules Logic" section to explain how to implement these (GSC vs Robots.txt vs Meta tags).
Refining the Table Columns:
Specific Nuances:
robots.txt to block params is the most effective way to save budget. Using noindex removes it from the index but the bot still visits. Using GSC parameters handling tells the bot "this changes nothing".Drafting the Content:
robots.txt: Disallow: /*?sort=. Noindex. Canonical to main.robots.txt: Disallow: /*?utm_. Canonical to main.Noindex, follow. Canonical to self (or parent).Allow. Canonical to self. rel="next/prev".Final Polish: Make it look professional, using Markdown tables. Add a section on "Implementation Methods" (GSC vs Code).
Let's double check the "Canonical to Self" for pagination. If I have page=2, canonicalizing to page=1 is wrong (soft 404 risk). Canonicalizing to page=2 (self) is correct. Canonicalizing to view-all is correct if it exists.
Let's double check Facets. If I select color=red, and this is a popular category, I want it indexed. If I select color=red&size=xl, this is a long tail. I should handle this dynamically. I will classify facets into "High Value" vs "Low Value".
Output Plan:
This looks solid. I will generate the response based on this structure. Here is a comprehensive parameter handling rules table designed for Technical SEOs and Developers. This governs how search crawlers should interact with URL parameters commonly found in search, listing, and filtration scenarios.
This table recommends specific policies based on the parameter's function.
| Parameter Category | Example Keys | Content State | Crawl Policy | Indexing Policy | Canonical Strategy | Rationale |
|---|---|---|---|---|---|---|
| Sorting / Ordering | sort, orderby, order, dir | Duplicate (Content is the same, just reordered) | Block (via Robots.txt or GSC) | NoIndex | Canonical to Main Listing | Sort orders offer no unique value to the search index and consume crawl budget. |
| Pagination | page, p, start, offset | Distinct (Unique subset of items) | Allow | Index | Self-Referencing (or rel="next/prev") | Allows deep product discovery. Do not canonicalize page 2 to page 1. |
| Faceted Navigation (Filters) | color, size, brand, price_min | Conditional (Depends on value) | Selective Allow (See Logic below) | Conditional | Self-Referencing (if indexed) or Parent (if blocked) | Only index filters with search volume (e.g., "Red Shoes"); block granular overlaps (e.g., "Size 8 Red Shoes"). |
| Internal Search Queries | q, query, search, keyword | Dynamic | Block (via Robots.txt) | NoIndex | Canonical to Root Search Page |
You should not rely on a single method. Use a layered approach:
Use this to stop the crawler before it hits your server. This is best for infinite spaces (calendars, deep filters, sort orders).
User-agent: *
# Block sort and view parameters
Disallow: /*?*sort=
Disallow: /*?*order=
Disallow: /*?*view=
# Block specific filter combinations that create infinite loops
Disallow: /*?*price_min=
Disallow: /*?*price_max=
Use this when the page must be accessible to users, but you want to remove it from the index.
<meta name="robots" content="noindex, follow">X-Robots-Tag: noindex, followfollow so link equity flows to the products listed on that page, even if the page itself isn't indexed.Handling filters (?color=red, ?brand=nike) requires logic, not just a blanket rule.
Rule 1: The "Search Volume" Test (Indexable Filters)
Meta Robots: Index, Follow.Canonical: Self-referencing (https://site.com/shoes?brand=nike).Sitemap: Include these URLs in sitemap.xml.Internal Linking: Link to these "Value Filters" from the main navigation or footer to pass PageRank.Rule 2: The "Drill-Down" Test (Non-Indexable Filters)
Meta Robots: NoIndex, Follow.Canonical: Point to the parent category (https://site.com/shoes).Robots.txt: Disallow parameters that create deep nesting (e.g., Disallow: /*?*size=*).| Scenario | URL Example | Canonical Tag | Robots Meta |
|---|---|---|---|
| Main Category | /shoes | /shoes | Index, Follow |
| Sorted List | /shoes?sort=price_asc | /shoes | NoIndex, Follow |
| Page 2 | /shoes?page=2 | /shoes?page=2 | Index, Follow |
| Value Filter | /shoes?color=red | /shoes?color=red | Index, Follow |
| Granular Filter | /shoes?color=red&size=9 | /shoes | NoIndex, Follow |
| Tracking URL | /shoes?utm_source=email | /shoes | (Inherited from Canonical) |
| Search results pages (SERPs) are considered low-quality "search within search" by engines. |
| Tracking / Attribution | utm_source, gclid, fbclid, msclkid, session_id | Duplicate (Exact same page content) | Ignore (via GSC) | NoIndex (Backup) | Canonical to Clean URL | Prevents fragmentation of link equity and rank signals. |
| View / Display Mode | view, display, layout, items_per_page | Duplicate (Different UI layout) | Block | NoIndex | Canonical to Main Listing | Search engines prefer standard list views; layout variations waste budget. |
| Locale / Currency | lang, currency, country | Distinct (Different intent/price) | Allow | Index | Self-Referencing + hreflang | Signals must be consolidated using hreflang rather than canonicalization. |