Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Sort and filter parameters creating duplicate category pages

SEO-060Medium impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

A category page such as /shoes/ often lets shoppers sort (price, newest, best selling) and filter (size, colour, brand). Each choice usually adds a URL parameter, a piece after the ? in the address. For example /shoes/?sort=price-asc or /shoes/?color=red&size=9.

Common parameter types and how to treat them
Parameter typeExampleUsually best handling
Sort order?sort=price-ascCanonical to the clean category URL
Display options?view=list&per_page=48Canonical to the clean category URL
Filter with no search demand?size=9&price=50-100Canonical to the clean category URL, limit crawling
Filter with real search demand?brand=nike or /shoes/nike/Give it a clean URL, unique title and self-referencing canonical

Why it costs you leads or sales

How filter URLs dilute a category page
  1. Category page/shoes/ is the page you want ranked
  2. Sort and filter linksEach click adds parameters to the URL
  3. Duplicate URLs crawledGoogle finds hundreds of near-identical pages
  4. Signals splitLinks and relevance spread across versions

One category turns into many competing URLs.

URLs for one categoryExample numbers
URLs for one category (example)Clean category: 1 URLs; With 4 sort options: 4 URLs; Plus colour filter (8): 36 URLs; Plus size filter (10): 396 URLs01523041436396Clean categoryWith 4 sort optionsPlus colour filter (8)Plus size filter (10)URLs

Example: how a single category can grow when sort and filter options combine. Numbers are illustrative.

How to check if your site has it

Find duplicate sort and filter URLs
  1. Search Google for indexed parameter URLs

    Search site:yourdomain.com inurl:?sort= and repeat with inurl:?filter, inurl:color= or your own parameter names. Many results mean parameter URLs are indexed.

  2. Check Google Search Console

    Open Indexing > Pages. Look at the reasons 'Duplicate without user-selected canonical', 'Alternate page with proper canonical tag' and 'Crawled - currently not indexed', and inspect example URLs for parameters.

  3. Click a sort and a filter on your site

    View the page source (right-click, View page source) and search for rel="canonical". Note whether it points to the clean category URL or to the parameter URL itself.

  4. Crawl the site

    Use a crawler such as Screaming Frog or Sitebulb. Filter the URL list for ? and check canonical, indexability and title columns for duplicates.

How to fix it

Set canonicals on sorted and filtered pages
  1. Use your SEO plugin

    Yoast SEO, Rank Math and similar plugins add a canonical to category pages. On WooCommerce, check that the canonical on /shop/?orderby=price points to /shop/ by viewing the page source.

  2. Fix any override

    If a theme or filter plugin outputs its own canonical with parameters, disable that option in the plugin settings or remove the theme code.

Example: build a canonical without sort and filter parametersphp
<?php
$allowed = ['page']; // parameters that change the content you want indexed
$path = strtok($_SERVER['REQUEST_URI'], '?');
$query = array_intersect_key($_GET, array_flip($allowed));
$canonical = 'https://www.example.com' . $path;
if (!empty($query)) {
  $canonical .= '?' . http_build_query($query);
}
?>
<link rel="canonical" href="<?php echo htmlspecialchars($canonical); ?>">
Complete the fix
  1. Decide which filters deserve a page

    Keep a filter as its own indexable page only if people search for it (for example 'red running shoes') and it has a unique title, heading and a self-referencing canonical, ideally on a clean URL like /shoes/red/.

  2. Canonical everything else to the clean category

    Sort, view, per-page and other combinations should point to the base category URL.

  3. Reduce internal links to parameter URLs

    Make filter links less prominent for crawlers, for example by loading results with JavaScript without changing the URL, or by adding rel="nofollow" to low-value filter links. Do not rely on this alone.

  4. Block endless combinations if needed

    For very large catalogues, add targeted robots.txt rules once canonicals are in place.

  5. Keep parameter URLs out of the sitemap

    Your XML sitemap should list only the clean, canonical category URLs.

Example robots.txt rules for sort parameterstext
User-agent: *
Disallow: /*?*sort=
Disallow: /*?*orderby=
Disallow: /*?*view=
Category URLs before and after

Before

  • /shoes/?sort=price-asc has its own canonical pointing to itself
  • Filter URLs appear in Search Console and in site: searches
  • Sitemap lists parameter URLs
  • Google shows a sorted URL in results

After

  • Sort and view URLs canonical to /shoes/
  • Only filters with search demand are indexable
  • Sitemap lists clean category URLs only
  • Google shows the main category page

How to confirm it's fixed

Confirmation checks
  • View source on a sorted and a filtered URL: one canonical, pointing to the clean category URL
  • URL Inspection in Search Console shows the clean URL as the Google-selected canonical
  • A crawl shows parameter URLs as 'Canonicalised' rather than 'Indexable and self-canonical'
  • The sitemap has no ? URLs
  • The site: searches for your parameters return fewer results over the following weeks

How to prevent it happening again

Ongoing habits
  • Add a canonical check to your launch checklist whenever you add a filter app, theme or plugin
  • Test one sorted and one filtered URL after each theme or platform update
  • Review Search Console Pages report monthly for new parameter patterns
  • Run a crawl each quarter and filter the URLs containing ?
  • Keep filter links out of the XML sitemap
  • Document which filters are allowed to be indexed

How FunnelGuard handles this

Questions people ask

Why are my filter and sort URLs showing up in Google?

Google follows links on your category pages, and every sort or filter option usually creates a new URL with parameters. Without a canonical tag pointing to the clean category page, or with a canonical pointing to itself, those URLs can be crawled and indexed as separate pages.

Should I use noindex or a canonical for filter pages?

For most sort and filter pages a canonical to the clean category URL is the safer choice, because it consolidates signals. Noindex removes the page from results but does not pass signals. Do not use both on the same page, as they send mixed messages.

Should I block filter parameters in robots.txt?

Only as a second step. Google cannot read a canonical on a page it is blocked from fetching, so blocked URLs that are already indexed can linger. Use canonicals first and then block endless low-value combinations if crawl load is a problem.

Do sort parameters cause duplicate content penalties?

Google does not usually apply a penalty for ordinary duplicate URLs. The real costs are split ranking signals, wasted crawling and the risk of the wrong version appearing in results.

How do I find which parameters create duplicate pages on my site?

Crawl your site with a tool such as Screaming Frog and filter the list for URLs containing a question mark. Check Search Console's Pages report for duplicate-related reasons, and run site: searches with inurl: for common parameters like sort, filter or color.

Should any filter pages be indexed?

Yes, if people search for that combination, such as a brand or a colour plus product type. Give it a clean URL, a unique title and heading, a self-referencing canonical and internal links. Leave the rest canonicalised to the main category.

Does FunnelGuard detect duplicate category URLs?

No. FunnelGuard does not check canonical tags or duplicate URLs yet, though it could be a future check. Use Google Search Console and a site crawler to monitor it for now.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.