Key takeaways
- Most WooCommerce crawl traps come from normal store features: sort links, layered navigation filters, add-to-cart links, variation parameters, tag archives and attachment pages.
- A page blocked in robots.txt cannot show Google its noindex or canonical tag. Pick one control per URL pattern, not two that cancel each other out.
- Noindex and canonical tags do not stop crawling. If the goal is fewer wasted requests, block crawling or remove the links.
- Paginated category pages keep their own canonical. Pointing page 2 at page 1 hides the products listed there.
- Sites that upgraded from older WordPress versions still have attachment pages switched on unless someone turned them off.
WooCommerce crawl traps are rarely a missing fix. In the stores I audit, the more common gap is two fixes that work against each other: a robots.txt rule that hides a noindex tag, or a canonical tag nobody can see because the page is blocked. Sorting out which control belongs to which URL is a big part of the WooCommerce technical SEO work I do on WordPress shops.
This article is about choosing the right control for each type of URL WooCommerce creates, and checking that the controls agree. If you first want to see where Googlebot spends its time on a shop, start with my guide to WooCommerce crawl budget, which covers Crawl Stats and server logs.
I first published this article in 2025 and have rewritten it, removing statistics I could not trace to any source and advice that Google no longer supports.
The URLs a WooCommerce store creates by itself
Around the product and category pages, WooCommerce, WordPress and the theme add many addresses that shoppers rarely notice. Each needs a decision: should Google crawl it, index it, or neither?
| URL type | Typical example | Control that usually fits |
|---|---|---|
| Sort order | /shop/?orderby=price | Block crawling in robots.txt |
| Layered navigation filters | /shoes/?filter_colour=red&query_type_colour=or | Block crawling, except filters you deliberately turn into landing pages |
| Add-to-cart links | /shop/?add-to-cart=123 | Block crawling |
| Preselected variations | /product/t-shirt/?attribute_pa_size=large | Canonical to the main product, left crawlable |
| Paginated categories | /shoes/page/2/ | Indexable, with a self-referencing canonical |
| Product tag archives | /product-tag/summer/ | Noindex or remove, unless the tag has a real purpose |
| Attachment pages | /?attachment_id=456 | Turn off in WordPress |
| Cart, checkout and account | /cart/, /my-account/orders/ | Noindex, kept out of the sitemap |
Parameter names vary with the theme and plugins, so collect real examples from your Page indexing report or a crawl before writing any rule.
Why WooCommerce crawl traps survive a robots.txt fix
The most frequent gap I find is a robots.txt rule added on top of tags that only work when the page is crawled. Google is direct about this in its page on blocking indexing with noindex: “For the noindex rule to be effective, the page or resource must not be blocked by a robots.txt file.” If it is blocked, “the crawler will never see the noindex rule”.
The same applies to canonical tags. And blocking does not guarantee the URL stays out of results. Google’s introduction to robots.txt says it “is used primarily to manage crawler traffic to your site” and that “it is not a mechanism for keeping a web page out of Google.” It adds: “A page that’s disallowed in robots.txt can still be indexed if linked to from other sites.”
So the rule of thumb is simple:
- If you want Google to stop requesting a pattern, block it in robots.txt and accept that its tags will not be read.
- If you want Google to read a noindex or canonical tag, leave the pattern crawlable.
- Never do both for the same pattern and expect both to work.
When a store already has a mix, I list every robots.txt rule next to the patterns it matches and look for any that also carry a noindex or a canonical. Each overlap is a gap.
Noindex and canonical tags do not stop crawling
The opposite mistake is common too. A store noindexes thousands of filter combinations and expects Googlebot to visit less. Google’s guide to managing crawl budget on large sites says: “Don’t use noindex, as Google will still request, but then drop the page.” It names alternate sort orders of the same content as an example of pages to block instead.
Canonical tags behave the same way. They are a hint about which URL to show, not a crawl control. Google’s page on faceted navigation says canonical and nofollow methods “are generally less effective in the long term” than blocking crawling or using URL fragments for filters.
So I ask two questions per pattern. Do I want this URL in Google? If not, is the problem duplication of a useful page, which calls for a canonical, or endless low-value combinations, which call for a robots.txt block or fewer links?
For a small shop, wasted crawling is usually a minor issue. Google’s crawl budget guide is written for “Large sites (1 million+ unique pages)” or sites with “10,000+ unique pages” whose content changes daily. Duplication matters at any size, because it decides which URL Google shows.
Variation, sort and filter URLs need one control each
These three patterns create most of the duplicate URLs in a typical store, and each needs a different answer.
Variation URLs
When a shopper picks a size or colour, many themes add parameters such as ?attribute_pa_size=large to the product URL. The page is the same product with a different option preselected. That is a duplication problem, so a canonical to the main product URL fits, and the URL must stay crawlable so Google can read it. Google’s guide to consolidating duplicate URLs also warns: “Don’t use the robots.txt file for canonicalization purposes.”
If a variant deserves its own page, for example a colour people search for by name, give it its own content and canonical. Otherwise keep one product URL.
Sort order
A sorted category shows the same products in another order. I block the orderby parameter in robots.txt and leave the sort control working for shoppers.
Filters multiply fast. A few colours, a few sizes and a price slider can already produce more combinations than a small store has products. Google’s faceted navigation page suggests to “Use robots.txt to disallow crawling of faceted navigation URLs” when you do not need them in Search, and to “Return an HTTP 404 status code when a filter combination doesn’t return results.”
The exception is a filter that matches real demand, such as a brand within a category. I turn those into proper landing pages with a clean URL and their own copy.
Product tags, attachment pages and pagination
These gaps do not create endless URLs, but they add thin or duplicate pages nobody planned.
Product tag archives
Product tags are often added ad hoc, leaving dozens of archives that list one or two products, each a weaker copy of a category. In audits only a handful usually have a purpose. I keep those, noindex or delete the rest, and redirect deleted tags with links or traffic to the closest category.
Attachment pages
Every uploaded product image used to get its own attachment page with little but the image on it. The WordPress core team’s note on changes to attachment pages says: “As of WordPress 6.4, attachment pages for new WordPress installations are fully disabled.” Upgraded sites are different: the wp_attachment_pages_enabled option is set to 1 on upgrade, so “attachment pages continue to work as is.” A shop that has been running for years still has them unless someone switched them off, either in that option or in the SEO plugin.
Paginated categories
The old version of this article recommended pointing every paginated page’s canonical to page 1. That is wrong. Google’s ecommerce guidance on pagination says “Don’t use the first page of a paginated sequence as the canonical page” and notes that it no longer uses rel=”next” and rel=”prev”. Page 2 lists different products, so it keeps its own canonical.
Cart, checkout, account pages and add-to-cart links
Cart, checkout and account pages have no search value. Keep them out of the sitemap and give them noindex. Many WooCommerce set-ups already output a noindex robots meta tag on these pages, so view the source before adding anything. If you also block them in robots.txt, Google will not see that tag. Choose one approach and write down which.
My account has its own sub-pages, such as orders and the lost password form. I check these too, because some themes link to them from every header.
Add-to-cart links are the classic WooCommerce crawl trap. On many themes the “Add to cart” button on category pages is a normal link with ?add-to-cart= and a product ID, so every category page links to one such URL per product, and they can combine with sort and filter parameters. I block the parameter in robots.txt. Where the theme allows it, I prefer buttons that output no crawlable link at all: a URL that is never linked is never a trap.
How I check that the fixes agree
After changes go live, I check that each URL pattern sends one clear signal.
- Run three or four example URLs per pattern through URL Inspection in Search Console. It shows whether crawling is allowed, whether indexing is allowed, and which canonical Google selected.
- Compare the sitemap with the rules. Google’s duplicate URL guide says to “Pick a canonical URL for each of your pages and submit them in a sitemap.” A noindexed or canonicalised URL in the sitemap is a contradiction.
- Look for conflicting canonicals. Google says: “Don’t specify different URLs as canonical for the same page using different canonicalization techniques.” A canonical tag pointing one way and an HTTP header or sitemap pointing another is a common plugin clash.
- Read the Page indexing report over the following weeks. Blocked patterns should move to “Blocked by robots.txt”, noindexed ones to “Excluded by ‘noindex’ tag”, and variations to “Alternate page with proper canonical tag”.
- On larger shops, compare Crawl Stats or server logs before and after.
Most WooCommerce crawl traps I find are not missing fixes but two fixes that cancel each other out.
I hand the changes over as a short table: pattern, control, owner and check, so the next plugin update does not quietly reopen the gap.
FAQ
Should I block WooCommerce filter URLs in robots.txt?
For combinations you do not want in Google, yes, as Google’s faceted navigation guidance recommends. Filters with real search demand are better as proper landing pages.
Is a canonical tag enough for WooCommerce variation URLs?
For preselected variations of the same product, a canonical to the main product URL usually fits, as long as the variation URL is not blocked in robots.txt. If it is blocked, Google cannot read the canonical.
Do WooCommerce stores still have attachment pages?
New WordPress installations from 6.4 onwards have them disabled. Sites that upgraded keep them working until someone turns them off, so older shops should check.
Should cart and checkout pages be noindexed or blocked?
Either works for pages with no outside links, but not both if you rely on the noindex tag. Check the page source first, as many set-ups already output noindex.