Seo variant urls in sitemap

Moderate effort

Remove product variant URLs (e.g. ?variant=, ?sku=) from your XML sitemap so only the canonical product page URL is submitted to Google.

What it is

When shoppers choose a color, size, or other option on a product page, many ecommerce platforms generate a new URL with a query parameter — for example, `/products/blue-t-shirt?variant=12345`. These variant URLs display the same product page with slightly different state; they are not separate, standalone pages. An XML sitemap is a file you submit to Google that lists the pages you want indexed. If variant URLs appear in that sitemap alongside the main product URL, you are effectively telling Google that each variant is its own unique page — which it isn't.

Why it matters

Submitting variant URLs in your sitemap wastes Google's crawl budget — the limited time Googlebot spends on your site — on duplicate or near-duplicate content instead of discovering and re-indexing your real product and category pages. It signals to Google that you may have a thin-content or duplicate-content problem, which can suppress your organic rankings. Google may also split ranking signals (links, engagement data) across the variant URLs instead of concentrating them on the single canonical product URL, weakening your page authority. Cleaning this up focuses all SEO value on one authoritative URL per product and keeps your sitemap lean and trustworthy in Google's eyes.

How to fix it

  1. Audit your sitemap: Open your XML sitemap (typically yourstore.com/sitemap.xml) and search for URLs containing query parameters like ?variant=, ?sku=, ?color=, or similar. Note how many exist and which template or plugin is generating them.
  2. Confirm the canonical URL for each affected product: The correct URL to keep is the clean, parameter-free product URL (e.g., /products/blue-t-shirt). Verify that this canonical URL already has a self-referencing rel=canonical tag pointing to itself.
  3. Remove variant URLs from the sitemap: Edit your sitemap configuration, theme, or sitemap-generating plugin/app to exclude any URL containing variant-style query parameters. Most platforms have a toggle or filter for this.
  4. Verify the canonical tag on variant URLs: When a shopper or bot lands on a variant URL (e.g., ?variant=12345), the page's <head> should contain a canonical tag pointing back to the clean product URL. This tells Google which URL to index even if the variant URL is discovered elsewhere.
  5. Regenerate and resubmit your sitemap: After making changes, force your platform to regenerate the sitemap file. Then go to Google Search Console → Sitemaps, remove the old sitemap entry if needed, and resubmit the updated sitemap URL.
  6. Monitor in Google Search Console: Over the next few weeks, check the Coverage or Pages report to confirm variant URLs are no longer being indexed, and watch for any increase in 'Duplicate, submitted URL not selected as canonical' warnings resolving.
<link rel="canonical" href="https://www.yourstore.com/products/blue-t-shirt" />

Fix it on your platform

Pick your platform for the exact steps.

How to fix seo variant urls in sitemap on Shopify
  1. Shopify's default sitemap.xml is auto-generated and intentionally excludes variant query-parameter URLs — if variant URLs are appearing, a third-party sitemap app or custom theme code is the culprit.
  2. Go to Apps → find any sitemap or SEO app you have installed (e.g., Yoast SEO for Shopify, SEO Manager, Sitemap by Millum). Open its settings and look for a 'Product variants' or 'Exclude URL parameters' option and disable variant URL inclusion.
  3. If the issue is in theme code, go to Online Store → Themes → your active theme → Edit code → search for sitemap.xml.liquid or any Liquid file that lists URLs. Remove any loop that iterates over product.variants and appends ?variant= parameters to sitemap entries.
  4. Shopify already outputs a self-referencing canonical tag for the base product URL on all variant URLs by default via theme.liquid — confirm this is intact by viewing source on any ?variant= URL and checking for <link rel='canonical'>.
  5. Resubmit your sitemap in Google Search Console: Settings → Sitemaps → add yourstore.com/sitemap.xml.
How to fix seo variant urls in sitemap on WooCommerce
  1. If you use Yoast SEO: Go to WordPress Admin → SEO → General → Features → enable XML Sitemaps, then go to SEO → Search Appearance → Taxonomies and ensure product attribute pages (pa_color, pa_size, etc.) are set to 'noindex' so their URLs don't leak into the sitemap.
  2. Go to SEO → Tools → Bulk editor or SEO → XML Sitemaps → check the sitemap for any ?attribute_pa_* or ?variation_id= URLs and confirm they are excluded. Yoast excludes query-string URLs from its sitemaps by default — if they appear, a custom filter is overriding this.
  3. If you use Rank Math: Go to Rank Math → Sitemap Settings → Products → ensure 'Include Product Variations' is toggled OFF.
  4. If you use All in One SEO (AIOSEO): Go to All in One SEO → Sitemaps → Additional Pages — remove any manually added variant URLs.
  5. Add a canonical tag to variation pages: WooCommerce renders variation state via JavaScript without changing the URL in most themes, but if your theme or a plugin generates unique URLs for variations, use a snippet in functions.php or a plugin like Rank Math to enforce the canonical pointing to the parent product URL.
  6. Regenerate the sitemap (Yoast: deactivate/reactivate XML Sitemaps toggle; Rank Math: flush sitemap cache in Rank Math → Status & Tools → Database Tools) and resubmit in Google Search Console.
How to fix seo variant urls in sitemap on BigCommerce
  1. BigCommerce generates its sitemap automatically at yourstore.com/xmlsitemap.php. By default it does not include variant query-parameter URLs — check whether a third-party SEO app or a custom sitemap script is adding them.
  2. Go to Apps → Marketplace, and review any installed SEO or sitemap apps. Open the app's settings and look for a 'Product variants' or 'URL parameters' exclusion setting and disable variant URL inclusion.
  3. For custom sitemaps built via the BigCommerce Storefront API or a headless front-end, edit the sitemap-generation script to filter out any URL containing query parameters before writing entries.
  4. BigCommerce automatically adds rel=canonical pointing to the clean product URL on all pages including those loaded with option/variant parameters — verify this by viewing page source on a variant URL.
  5. Resubmit your sitemap in Google Search Console: yourstore.com/xmlsitemap.php.
How to fix seo variant urls in sitemap on Wix
  1. Wix generates and manages its sitemap automatically — you cannot directly edit the sitemap.xml file. Wix does not include variant query-parameter URLs in its auto-generated sitemap by default.
  2. If variant URLs are appearing, check whether you are using Wix's Stores product options (which are handled client-side and do not create separate URLs) versus a custom solution. Variant state in Wix eCommerce does not generate new URLs, so the issue is likely a custom coded page or a third-party integration.
  3. Go to your Wix Editor → Pages & Menu → confirm product pages use the standard Wix Stores dynamic page structure (/product-page/{slug}) with no query-parameter variants in the page URL settings.
  4. If you have a custom Wix Velo (code) script generating a sitemap, edit the sitemap function in your site's Backend code (Public/sitemap.js or equivalent) to filter out any URL containing '?' before returning entries.
  5. Use Google Search Console → URL Inspection to confirm variant URLs return a canonical pointing to the clean product URL, then request removal of any already-indexed variant URLs via the URL Removal tool.
How to fix seo variant urls in sitemap on Squarespace
  1. Squarespace auto-generates its sitemap at yoursite.com/sitemap.xml and does not include query-parameter variant URLs by default — Squarespace Commerce product options do not create separate URLs.
  2. If variant URLs are appearing in the sitemap, they are likely being added by a third-party integration or by manually adding pages. Go to Pages panel and check for any pages whose URL slugs contain query strings.
  3. Squarespace does not provide direct sitemap editing. To exclude a specific page entirely, go to Pages → (select the page) → gear icon → SEO tab → enable 'Hide page from search results' (adds noindex) — but this is a last resort; the better fix is ensuring variant URLs are never created as standalone pages.
  4. Verify canonical tags by viewing source on any variant-like URL — Squarespace injects a canonical tag automatically pointing to the clean page URL.
  5. Resubmit yoursite.com/sitemap.xml in Google Search Console after confirming variant URLs are no longer present.
How to fix seo variant urls in sitemap on Webflow
  1. Webflow auto-generates a sitemap for CMS and Ecommerce collections. Go to Webflow Designer → Project Settings → SEO tab — confirm 'Auto-generate sitemap' is enabled and review which Collection pages are included.
  2. Webflow Ecommerce product variants do not generate separate URLs by default (variant selection is handled client-side). If variant query-parameter URLs appear in your sitemap, a custom code embed or third-party script is adding them.
  3. Check any Custom Code added in Project Settings → Custom Code or in the product template page's before-</body> section for scripts that append variant parameters to the URL bar.
  4. To exclude specific URL patterns from being crawled, go to Project Settings → SEO → Edit Robots.txt and add a Disallow rule for the query parameter pattern (e.g., Disallow: /*?variant=). Note: this prevents crawling but the sitemap must also be clean.
  5. After fixing, republish your site (Publish button) to regenerate the sitemap, then resubmit in Google Search Console.
How to fix seo variant urls in sitemap on Adobe Commerce (Magento)
  1. Go to Admin → Marketing → SEO & Search → Site Map. Review existing sitemap configurations and note which store views are affected.
  2. Go to Stores → Configuration → Catalog → XML Sitemap. Under 'Product Options', confirm 'Include in Sitemap' is set correctly. Adobe Commerce does not natively add ?___store= or configurable product option query parameters to the sitemap — check if a third-party SEO extension is the source.
  3. If using a sitemap extension (e.g., Amasty SEO Toolkit, Mirasvit SEO Suite), go to that extension's configuration in the Admin and look for a 'Product Variations', 'Configurable Product Options', or 'URL Parameters' setting and disable inclusion of variant URLs.
  4. Ensure all configurable product child (simple) product URLs either redirect to the parent configurable product URL or carry a canonical tag pointing to the parent. In Adobe Commerce, go to Stores → Configuration → Catalog → Search Engine Optimization → set 'Use Canonical Link Meta Tag for Products' to Yes.
  5. After saving configuration, regenerate the sitemap: Marketing → SEO & Search → Site Map → select your sitemap → Generate. Then resubmit the updated sitemap URL in Google Search Console.
How to fix seo variant urls in sitemap on Magento Open Source
  1. Go to Admin → Marketing → SEO & Search → Site Map to review your sitemap configurations.
  2. Go to Stores → Configuration → Catalog → XML Sitemap. Under 'Product Options', verify that configurable product option URLs are not being included.
  3. Set Stores → Configuration → Catalog → Search Engine Optimization → 'Use Canonical Link Meta Tag for Products' to Yes — this ensures all product variant/child URLs declare the parent as canonical.
  4. If a third-party sitemap extension is installed, open its admin configuration and disable 'Include product variations' or equivalent setting.
  5. Regenerate the sitemap via Marketing → SEO & Search → Site Map, then resubmit in Google Search Console.
How to fix seo variant urls in sitemap on PrestaShop
  1. PrestaShop generates its sitemap via the Google Sitemap module (or a third-party equivalent). Go to Modules → Module Manager → search for 'Google Sitemap' or your installed SEO module → Configure.
  2. In the sitemap module configuration, look for a setting related to product attributes, combinations, or variations and ensure these are excluded from the sitemap. Combinations in PrestaShop generate URLs like /product?id_product=1&id_product_attribute=5 — these should be excluded.
  3. If no such toggle exists, consider switching to a more capable SEO module (e.g., SEO Expert, Yoast for PrestaShop) that explicitly excludes combination/attribute URLs.
  4. Ensure a canonical meta tag pointing to the clean product URL is present on all combination URLs. This can typically be set in your theme's product.tpl file or via an SEO module's canonical settings.
  5. Regenerate and redownload the sitemap from the module, upload or point Google Search Console to the new sitemap URL.
How to fix seo variant urls in sitemap on OpenCart
  1. OpenCart does not include a built-in XML sitemap generator — you are likely using an extension. Go to Extensions → Extensions → choose type 'SEO' or search the extension list for your sitemap extension → Edit its settings.
  2. In the sitemap extension settings, look for an option to exclude product option or variant query-parameter URLs and enable it.
  3. Verify canonical tags: in your product.twig (or product.tpl in older versions) template, ensure a canonical tag is output pointing to the clean product URL without query parameters.
  4. Regenerate the sitemap from the extension interface and resubmit in Google Search Console.

Does your site have this issue?

Run a free SEOLZ audit to find seo variant urls in sitemap — and every other issue — across your whole site in minutes.

Scan my site free

Frequently asked questions

What is Seo variant urls in sitemap?

When shoppers choose a color, size, or other option on a product page, many ecommerce platforms generate a new URL with a query parameter — for example, `/products/blue-t-shirt?variant=12345`. These variant URLs display the same product page with slightly different state; they are not separate, standalone pages. An XML sitemap is a file you submit to Google that lists the pages you want indexed. If variant URLs appear in that sitemap alongside the main product URL, you are effectively telling Google that each variant is its own unique page — which it isn't.

Why does seo variant urls in sitemap matter?

Submitting variant URLs in your sitemap wastes Google's crawl budget — the limited time Googlebot spends on your site — on duplicate or near-duplicate content instead of discovering and re-indexing your real product and category pages. It signals to Google that you may have a thin-content or duplicate-content problem, which can suppress your organic rankings. Google may also split ranking signals (links, engagement data) across the variant URLs instead of concentrating them on the single canonical product URL, weakening your page authority. Cleaning this up focuses all SEO value on one authoritative URL per product and keeps your sitemap lean and trustworthy in Google's eyes.

How do I fix seo variant urls in sitemap?

Remove product variant URLs (e.g. ?variant=, ?sku=) from your XML sitemap so only the canonical product page URL is submitted to Google.

Authoritative references

Related SEO issues