# WooCommerce Noindex Cart and Checkout Pages

Source: https://crawlcove.com/blog/woocommerce-cart-checkout-noindex
Published 2026-11-19 · Updated 2026-11-25 · By Lewis Jones

> WooCommerce already noindexes cart, checkout and My account. Four live stores show what it leaves to you: the sitemap and leftover copies of the pages.

## Key takeaways
- WooCommerce adds noindex, follow to the cart, checkout and My account pages assigned in its settings, so there is nothing to switch on
- On all four stores we checked the noindex was in place, and every sitemap still listed at least one of those pages
- One store also had /cart-2/, /checkout-2/ and /my-account-2/ copies that were indexable and in the sitemap, because WooCommerce only noindexes the assigned pages
- Fix the sitemap in your SEO plugin, not with robots.txt, which would stop search engines reading the noindex
- A Search Console noindex warning for these pages means the sitemap lists them, not that the noindex is wrong

WooCommerce noindexes the cart, checkout and My account pages on its own. You do not need a plugin or a snippet for it, and on all four live stores we checked on 19 November 2026 it was working. What WooCommerce leaves alone is the sitemap, and any other page that happens to be called Cart. That is where every store we checked had something to fix, and where Search Console's "Submitted URL marked noindex" warnings for these pages come from.

This post shows what the four stores served, what WooCommerce's own code (version 11.3, the current release) does and does not do for these pages, and the two fixes. For the rest of a store audit, see the [WooCommerce SEO audit](https://crawlcove.com/blog/woocommerce-seo-audit), where this is Step 3. For the rest of the store, from product tags to page 2, see [WooCommerce noindex](https://crawlcove.com/blog/woocommerce-noindex).

## What four stores served

We opened the cart, checkout and My account pages on four stores from WooCommerce's own showcase with an empty cart and no login, which is how a search engine arrives, and read each store's page sitemap.

**Figure:**
src: /media/blog/woocommerce-cart-checkout-noindex/four-stores.webp
alt: Table of four WooCommerce stores read on 19 November 2026: on all four the cart and My account pages were noindex and the checkout redirected to the cart with a 302; the bakery's sitemap listed the checkout, the home and fashion and photography stores listed all three pages, and the baby food store listed all three plus indexable copies at /cart-2/, /checkout-2/ and /my-account-2/
label: Four stores
caption: Every store got the noindex right. Every store's sitemap still asked search engines to look at the pages.
aspect: 1400/651

Cart and My account answered 200 with `noindex, follow` on every store, three running Yoast SEO and one with no SEO plugin. The checkout answered a 302 to the cart on all four. Yet every sitemap listed at least one of the three pages, and three of them listed all three. The baby food store also listed three more: `/cart-2/`, `/checkout-2/` and `/my-account-2/`, which were indexable.

## What WooCommerce does for these pages

The behaviour is all in WooCommerce's own code, so it is the same on every store unless a plugin or theme changes it.

**Figure:**
src: /media/blog/woocommerce-cart-checkout-noindex/what-woo-does.webp
alt: Two columns from WooCommerce 11.3's code: WooCommerce noindexes the three assigned pages, redirects an empty checkout to the cart, and blocks add-to-cart links in robots.txt; it leaves the sitemap, any other copy of the pages, and robots.txt rules for the pages themselves to you
label: What WooCommerce does
caption: The left column needs nothing from you. The right column is where every store we checked had work to do.
aspect: 1400/540

- **The noindex.** WooCommerce adds `noindex, follow` to the pages assigned as cart, checkout and My account under WooCommerce, then Settings, then Advanced, then Page setup. It does this through WordPress's own robots filter.
- **The redirect.** A visitor on the checkout with an empty cart is sent to the cart page with a 302. Crawlers always have an empty cart, so they always get the redirect.
- **Robots.txt.** WooCommerce adds `Disallow: /*?add-to-cart=` to the file WordPress generates, so crawlers following "Add to cart" links do not fill carts. It leaves the pages themselves crawlable, on purpose. [WooCommerce robots.txt](https://crawlcove.com/blog/woocommerce-robots-txt) covers the rest of the file.

## Take them out of the sitemap

A sitemap is a list of pages you want indexed. Listing a page that also says `noindex` sends search engines two opposite instructions. Search Console's Pages report shows these as [excluded by 'noindex' tag](https://crawlcove.com/blog/excluded-by-noindex-tag) among the URLs your sitemap submitted, which older reports called "Submitted URL marked noindex". The noindex is right, so the sitemap is what changes.

**Figure:**
src: /media/blog/woocommerce-cart-checkout-noindex/sitemap-fix.webp
alt: How to remove the cart, checkout and My account pages from the sitemap: in Yoast SEO set Allow search engines to show this page in search results to No in each page's Advanced settings; in Rank Math set the page's robots meta to No Index; with no SEO plugin use the wp_sitemaps_posts_query_args filter; and do not block the pages in robots.txt
label: Sitemap fix
caption: Three pages, a minute each. Search Console stops reporting them once Google rereads the sitemap.
aspect: 1400/511

- **Yoast SEO:** edit each of the three pages, open the Yoast SEO box, then Advanced, and set "Allow search engines to show this page in search results?" to No. Yoast then leaves the page out of its sitemap, and the page keeps its noindex.
- **Rank Math:** set each page's robots meta to No Index in the Advanced tab. Rank Math leaves noindexed pages out of its sitemap.
- **No SEO plugin:** WordPress's own sitemap at `/wp-sitemap.xml` lists every published page. Excluding three needs a few lines of code on the `wp_sitemaps_posts_query_args` filter, or an SEO plugin.

Then resubmit the sitemap in Search Console. Do not block the pages in robots.txt instead: a blocked page cannot be fetched, so its noindex is never read, and a page that something links to can be indexed by its address alone. The [blocked by robots.txt](https://crawlcove.com/blog/blocked-by-robots-txt) post explains how that happens.

## Leftover copies: /cart-2/ and friends

WooCommerce noindexes the pages assigned in its settings, by page ID. It does not look at page names, so any other page called Cart is an ordinary page.

**Figure:**
src: /media/blog/woocommerce-cart-checkout-noindex/duplicate-pages.webp
alt: The assigned pages /cart/, /checkout/ and /my-account/ are noindex, follow, while leftover copies /cart-2/, /checkout-2/ and /my-account-2/ are index, follow, titled Cart, Checkout and My account and listed in the sitemap; fixes are to check the page assignment, bin the copies and redirect them
label: Leftover copies
caption: The copies looked like store pages, so nobody noticed they were indexable.
aspect: 1400/483

On the baby food store, `/cart-2/`, `/checkout-2/` and `/my-account-2/` all answered 200 with `index, follow`, carried titles of Cart, Checkout and My account, and were in the sitemap. WordPress adds `-2` to a page's address when a page with that name already exists, so these are second copies of the store pages.

To check your own store, open WooCommerce, then Settings, then Advanced and note which pages are assigned. Then search Pages for Cart, Checkout and My account. Move any copy that is not assigned to the bin, and add a 301 from its address to the real page with a redirect plugin or your SEO plugin, in case anything linked to it.

## Checking it in a crawl

A crawl that reads the sitemap alongside the links finds both problems without opening the admin. [Crawl Cove](https://crawlcove.com/ecommerce-seo-crawler) reports sitemap URLs that redirect, return an error or are noindexed as one finding, so the checkout and the noindexed pages show up there. It also lists every noindexed page, and grades a basket, checkout or account page low with a note that the exclusion is usually deliberate, so a correct store does not get a high-severity alarm for doing the right thing. A second page titled Cart that is indexable stands out in the page list next to it.

The Free plan crawls up to 1,000 URLs a crawl. [Download Crawl Cove](https://crawlcove.com/download#free) and start from the store's home page. The [WooCommerce sitemap](https://crawlcove.com/blog/woocommerce-sitemap) post covers the rest of what a store's sitemap should and should not list.

## FAQ

### Should cart and checkout pages be noindexed in WooCommerce?
Yes, and WooCommerce does it for you. Cart, checkout and My account show content for one visitor at a time, so there is nothing for a search result to show. WooCommerce adds noindex, follow to the three pages assigned under WooCommerce, then Settings, then Advanced, then Page setup.

### Why does Search Console say Submitted URL marked noindex for my cart page?
Because your sitemap lists a page that WooCommerce tells search engines not to index. The noindex is correct; the sitemap is what needs changing. Remove the three pages from the sitemap in your SEO plugin and resubmit the sitemap. The current Pages report shows the same thing as Excluded by noindex tag.

### Should I block the cart and checkout in robots.txt?
No. A robots.txt block stops search engines fetching the page, so they never see its noindex, and a linked page can then be indexed by its URL alone. WooCommerce's own robots.txt rules only block add-to-cart links, and leave the pages crawlable on purpose.

### Why is my checkout page redirecting to the cart?
WooCommerce sends a visitor with an empty cart from the checkout to the cart page with a 302 redirect. Search engines arrive with an empty cart, so they always see the redirect. That is normal, and one more reason the checkout does not belong in a sitemap.

### What are cart-2 and checkout-2 pages in WordPress?
Copies. WordPress adds -2 to a page's address when a page with the same name already exists. WooCommerce only noindexes the pages assigned in its settings, so a copy is an ordinary, indexable page. Check which pages are assigned, move the copies to the bin and redirect them to the real pages.
