Skip to content
Ecommerce SEO

Filter and variant URLs: how to stop duplicate pages on Shopify and WooCommerce

Filters, sorting and variants can turn one collection into hundreds of URLs. Here is how to find them and decide which ones search engines should see.

Written byEcommerce SEO Team
Nov 22, 20264 min read
One collection page branching into many filter and sort URLs
Contents1 of 9

Key points

  • Filters, sorting and variants can create many URLs for the same products.
  • Decide which filtered pages deserve to rank before changing any settings.
  • Use canonical tags, noindex or robots.txt rules for different jobs, not all at once.
Summarize with AI:ChatGPTClaudePerplexity

Most online stores have more URLs than they think. A single collection can be reached with different filters, sort orders, page numbers and tracking parameters, and each version can look like a separate page to a search engine. When many URLs show the same products, search engines spend time crawling copies instead of the pages that sell, and the version that ranks may not be the one you want.

Where duplicate URLs come from

The most common sources in Shopify and WooCommerce stores are:

  • Filters, such as color, size or price, added to a collection or category URL as parameters
  • Sort orders, such as price low to high or newest first
  • Pagination, such as page 2 and page 3 of a large collection
  • Product URLs that include the collection path, for example a product reached from two different collections
  • Variant URLs, where each size or color has its own parameter
  • Tracking parameters added by ads, email platforms and social links

None of these are mistakes. They exist to help shoppers. The problem starts when search engines are left to decide on their own which versions matter.

Step 1: find the URL patterns

Start with Google Search Console. Open the Pages report and look at the lists of URLs that are crawled or discovered but not indexed, and at the duplicate pages Google has chosen a different canonical for. Look for repeated patterns, such as a filter parameter or a sort parameter, rather than single URLs.

A site crawler gives you a second view. Crawl the store and group the URLs by pattern. If one collection produces dozens of filtered versions, you have found the pattern to work on.

Step 2: decide which filtered pages deserve to rank

Some filtered pages match real searches. A page for black running shoes or a page for leather tote bags can be worth ranking if people search for that combination and you have enough products to show. Most filter combinations do not match anything people search for.

For each pattern, ask:

  • Do people search for this combination?
  • Does the page show enough products to be useful?
  • Can it have its own title, heading and short introduction?

If the answer is yes, treat that page like a collection: give it a clean URL, a unique title and text, and link to it from your navigation or related collections. If the answer is no, the page should point search engines back to the main collection.

Step 3: choose the right tool for each pattern

There are three main tools, and they do different jobs.

Canonical tags

A canonical tag tells search engines which URL is the main version of a page. Filtered, sorted and variant URLs usually point to the main collection or product. Search engines treat canonical tags as a strong hint rather than a strict rule, so they work best when the pages really are close copies.

Noindex

A noindex tag asks search engines not to show a page in results. It suits pages that shoppers need but that should never rank, such as some internal search results. Search engines must be able to crawl the page to see the tag, so do not block the same URLs in robots.txt.

Robots.txt rules

Robots.txt stops crawling of matching URLs. It is useful for large, low-value patterns, such as endless sort and filter combinations, because it saves crawl time. It does not remove URLs that are already indexed, and blocked pages cannot pass on their canonical or noindex tags.

Want this checked for your store?A senior specialist reviews it and sends clear next steps.
Get Started

Shopify notes

Shopify adds canonical tags to product and collection pages, and its default robots.txt already blocks some patterns, such as sort orders and collection tag combinations. Check your own file at yourstore.com/robots.txt. Filter apps and theme changes can add new URL patterns, so review them after installing a filter app or changing your theme. If you need custom rules, Shopify lets you edit robots.txt through a robots.txt.liquid template.

WooCommerce notes

WooCommerce filter widgets and plugins often add parameters such as filter_color or orderby to category URLs. SEO plugins such as Yoast SEO and Rank Math add canonical tags, but check what they output on filtered and paginated pages. Plugin updates and new filter plugins can change this, so include it in your regular checks.

Search engines follow your links. If your menus, breadcrumbs or product cards link to filtered or parameter URLs, those URLs keep getting crawled. Link to the clean collection and product URLs wherever you can.

Step 5: check the results

After the changes, recheck the Pages report in Search Console and run another crawl. You should see fewer duplicate URLs being crawled and the main collection and product URLs being chosen as canonical. Repeat the check after any theme, app or plugin change, because those are the moments new URL patterns tend to appear.

FAQ

Should I block all filter URLs in robots.txt?

Not always. Blocking stops crawling, but it does not remove URLs that are already indexed, and it also hides any canonical or noindex tag on those pages. Decide what each URL type needs first.

Are Shopify variant URLs a problem?

Usually not on their own. Variant URLs normally point back to the main product URL with a canonical tag. Check that your theme and apps have not changed this.

How long does it take to see a change?

Search engines need to recrawl the affected URLs, so changes are often gradual. Watch the Pages report in Google Search Console over the following weeks.

Ecommerce SEO Team

Senior specialists who work with Shopify and WooCommerce stores in the US.

Free growth audit

Find what's holding your store back.

A senior specialist reviews your store and sends a written, prioritized overview. No obligation.

  1. 1Share your storeTakes about a minute
  2. 2We review itTracking, ads, product pages, checkout
  3. 3You get a priority list
Sample audit reportyourstore.com · example onlyIllustrative
  • Tracking & dataGA4 purchase value doesn't match ordersHigh
  • Ads & feed14 products disapproved in Merchant CenterHigh
  • Product pageNo delivery info above the foldMedium
  • CheckoutAccount creation required before paymentMedium
  • RetentionNo abandoned-cart email flowQuick win

Example of the prioritized findings you receive.

Request your free audit

Five quick fields.

We’ll review your request and get back to you. Your written priority list follows after the review.

Step 1 of 3 · Your store

Which platform is your store on? *
Talk to specialists

How would you like to reach us?

A senior specialist reads every request. Choose what suits you.

Select a date