Magento SEO: The Magento 2 and Adobe Commerce Settings That Decide What Gets Indexed
Magento SEO is mostly configuration. In Magento 2 and Adobe Commerce, turn on canonical tags for products and categories (both ship switched off), keep category paths out of product URLs, decide which filter and sort URLs crawlers may fetch, schedule the XML sitemap, and check what your pages contain before JavaScript runs, because AI crawlers don't run it.
By Raúl Díaz, founder of Slibur
Updated Published 14 min read

In this article
The settings below are the ones Magento Open Source 2.4 shares with Adobe Commerce on-premises and on Adobe's cloud infrastructure. Adobe labels them "PaaS only": Adobe Commerce as a Cloud Service, with its Edge Delivery storefront, follows a separate set of storefront SEO guidelines.
Product copy, category text and links work as on any other platform, and the ecommerce SEO guide covers them. This page sticks to what is specific to Magento, including a check that rarely makes it into Magento guides: whether AI crawlers can read your product pages at all, which Slibur's free AI crawler checker tests for GPTBot, ClaudeBot, PerplexityBot and other AI crawlers.
The Magento 2 settings that decide indexing
Most of what decides indexing in Magento sits in a handful of admin screens. The defaults in this table come from the configuration files in Magento 2.4's source code, and several of them are not what a live store wants.
| Setting | Where in the admin | Default | Set it to |
|---|---|---|---|
| Use Web Server Rewrites | Stores > Configuration > General > Web > Search Engine Optimization | Chosen at install | Yes |
| Product and Category URL Suffix | Stores > Configuration > Catalog > Catalog > Search Engine Optimization | .html | Whatever you launched with |
| Use Categories Path for Product URLs | Same section | No | No |
| Create Permanent Redirect for URLs if URL Key Changed | Same section | Yes | Yes |
| Use Canonical Link Meta Tag for Categories | Same section | No | Yes |
| Use Canonical Link Meta Tag for Products | Same section | No | Yes |
| Default Robots | Content > Design > Configuration > Search Engine Robots | INDEX, FOLLOW | INDEX, FOLLOW on production |
| Sitemap generation | Stores > Configuration > Catalog > XML Sitemap > Generation Settings | Disabled | Enabled, daily |
| Enable Submission to Robots.txt | XML Sitemap > Search Engine Submission Settings | No | Yes |
| Full Page Cache | Stores > Configuration > Advanced > System | Built-in cache | Varnish |
Scope matters as well: most catalog fields are set per store view. A value saved at Default Config can be overridden in one store view without anyone noticing, so switch the scope selector at the top of the page to each store view and look for cleared "Use system value" boxes.
Meta titles and descriptions: check the masks
New products get their meta title and meta description from masks under Stores > Configuration > Catalog > Catalog > Product Fields Auto-Generation. Out of the box, the title mask is the product name alone, and the description mask is the product name followed by the full product description. Adobe's metadata guide suggests a meta title under 70 characters and a description of 150 to 160. Add your store name to the title mask, and write the description by hand for the products and categories that bring in most of your traffic, because the default mask pastes in the whole product text.
URL rewrites, suffixes and category paths
Use Web Server Rewrites removes index.php from storefront URLs. Adobe's configuration reference describes it as a usability setting with no impact on performance or rank. Turn it on anyway: short, clean URLs are what you want people to link to, and Magento's default robots rules already disallow /index.php/.
Magento appends .html to product and category URLs out of the box. Keep whatever the store launched with. The suffix itself is a matter of taste; changing it is not, because it rewrites every product and category address at once.
Use Categories Path for Product URLs adds the category to product addresses, so a backpack in Gear > Bags answers at /gear/bags/driven-backpack.html as well as /driven-backpack.html. Adobe warns that this creates several URLs for one page. Leave it at No, and leave "Generate category/product URL Rewrites" at No as well: Adobe notes that writing those rewrites into the table can slow down category saves, and product URLs resolve either way.
Changing a suffix or URL key on a live store
Renaming a single URL key is safe as long as "Create Permanent Redirect for old URL" stays ticked under the field, which is the default. Magento then writes a 301 from the old address. A suffix change is different in scale: every indexed product and category URL changes in one save. Treat it as a migration, with a full map of old to new URLs, redirects tested on staging and a fresh sitemap, and follow a site migration checklist before you touch the field.
Canonical tags: off until you turn them on
Both canonical settings are set to No in Magento 2.4's configuration file. If nobody changed them, your product and category pages print no canonical tag at all, and Google picks the version it prefers from whatever URLs it finds.
With the product setting on, every product page points to domain/url-key.html, without a category path, because product URL keys are unique. That holds however the shopper arrived: through a category path, a search result or a link with tracking parameters. Google treats a canonical tag as a strong signal, not an order, so internal links and the sitemap should use the same short URL.
Category canonicals changed in 2.4.8. Up to 2.4.7, Magento pointed every category URL at the bare category address, page 2 and page 3 included. Google's pagination guidance (opens in a new tab) says the opposite: don't use the first page of a paginated sequence as the canonical page, give each page its own. From 2.4.8, the category canonical keeps the ?p= page number and drops every other parameter. Filtered and sorted views still point to the category, and page 2 points to itself.
To check yours, open page 2 of a large category, view the source and search for rel="canonical". You should find one tag, with ?p=2 in it on 2.4.8 or later. On 2.4.7 or older, upgrading or a small theme override fixes paginated canonicals. Two tags mean a module or the theme is printing a second one; keep one.
Layered navigation, sorting and internal search
Layered navigation is where Magento stores pile up URLs. Each filter value is a query parameter on the category URL (?color=5&size=9), filters combine across attributes, and the toolbar adds product_list_order, product_list_dir, product_list_mode and product_list_limit for sorting and display. Internal search results live under /catalogsearch/.
What Magento already does
Since 2.4.0, the core filter templates add rel="nofollow" to every filter link, values with no matching products aren't links in the standard filter list, and the sort dropdown changes the URL with a script instead of a link. With category canonicals on, a filtered view also points back to its category.
That is a fair starting point, but Google's faceted navigation guidance (opens in a new tab) calls canonicals and nofollow generally less effective in the long term than blocking filter URLs in robots.txt. Nofollow only works if every link to the URL carries it. A custom theme, a module that links to filtered views or a link from another site is enough to put those URLs back in the crawl queue.
Which URLs to crawl, index or block
| URL type | Example | Crawl | Index | How |
|---|---|---|---|---|
| Category, first page | /gear/bags.html | Yes | Yes | Self-referencing canonical |
| Category, later pages | /gear/bags.html?p=2 | Yes | Yes | Own canonical (2.4.8 or later) |
| Filtered view | /gear/bags.html?color=5 | No | No | robots.txt rule per filter parameter |
| Sort and display | ?product_list_order=price | No | No | robots.txt |
| Internal search | /catalogsearch/result/?q=bag | No | No | robots.txt |
| Filter combination people search for | /gear/leather-bags.html | Yes | Yes | A real category or landing page |
In robots.txt, that comes down to a few lines. Replace color, size and price with the attribute codes your layered navigation uses, which you'll find under Stores > Attributes > Product.
User-agent: *
Disallow: /catalogsearch/
Disallow: /*?*product_list_order=
Disallow: /*?*product_list_dir=
Disallow: /*?*product_list_mode=
Disallow: /*?*product_list_limit=
Disallow: /*?*color=
Disallow: /*?*size=
Disallow: /*?*price=
If filter URLs are already indexed
Order matters. A robots.txt block stops Google from fetching the page, so it never sees a noindex tag, and Google may keep a disallowed URL in the index without its content. Adobe's own storefront SEO guide gives the sequence: add noindex and leave the URLs crawlable, wait until the Page indexing report in Search Console shows them gone, then add the robots.txt rules.
Magento has no admin field that sets noindex on filtered views. A module, a theme change or an X-Robots-Tag: noindex header that your web server adds to URLs carrying filter parameters will do it.
Filter pages worth ranking
Some filter combinations match real searches, such as a brand inside a category or a material. Don't open the filter parameter for those. Create a subcategory or a CMS page with its own URL key, title, intro text and a chosen set of products, and link to it from the parent category. Adobe's storefront guidance draws the same line: query parameters for filter, sort and search state, URL paths for pages you want indexed and ranked.
robots.txt and the Default Robots setting
Magento serves robots.txt from the admin rather than from a file: Content > Design > Configuration, edit the global or website row, then expand Search Engine Robots. Default Robots sets the meta robots tag for every page in that scope, and the custom instructions box becomes your robots.txt. If a physical robots.txt file sits in the web root, the server returns that file instead, so always confirm by opening /robots.txt in a browser.
The default rules block page 2
The "Reset to Default" button loads the rules Magento ships with, and they include Disallow: /*?. That one line blocks every URL with a query string. It handles filters and sorting, and it also blocks ?p=2, ?p=3 and every deeper page of every category. On 2.4.8 and later those pages are their own canonical, and products that only appear deep in a category are left to the sitemap.
That default list also contains Disallow: /review/. On a Luma product page, the review list loads from /review/product/listAjax/ after the page arrives, so that rule keeps Googlebot and every other crawler that respects robots.txt from fetching your review text. Replace /*? with the parameter rules above, and decide on /review/ knowingly.
Staging and launch
Adobe's sitemap guide suggests disallowing crawlers while a site is in development. Those settings live in the database, so a staging copy promoted to production carries its Disallow: / or its NOINDEX, NOFOLLOW with it. After every deploy that moves configuration, open /robots.txt and the source of the home page. Google recommends noindex or password protection to keep a page out of its results, and a password on staging is the safer of the two.
XML sitemap: three defaults to change
Magento builds sitemaps under Marketing > SEO & Search > Site Map, and the schedule lives in Stores > Configuration > Catalog > XML Sitemap. Out of the box, scheduled generation is disabled and "Enable Submission to Robots.txt" is set to No. A sitemap generated once at launch goes stale as products come and go.
Set Generation Settings > Enabled to Yes with a daily frequency, and turn on submission to robots.txt so the file lists your sitemap. By default Magento splits sitemap files at 50,000 URLs or 10,485,760 bytes, and Add Images into Sitemap is set to All. From 2.4.9, a Batch generation method handles large catalogs with less memory.
Stores with several websites need one sitemap per store view, each saved to its own path and listed in robots.txt. Submit each one in Search Console, then compare submitted with indexed URLs per file. A large gap on the product file is a reason to look at the product pages themselves, not at the sitemap.
Structured data: what Magento marks up and what it leaves out
Adobe's documentation says Magento adds schema.org markup to the product template by default. In the core templates Luma uses, that markup is microdata: a Product with name, SKU, description and image, an Offer with price and priceCurrency, and an AggregateRating in the review summary, expressed as a percentage with a bestRating of 100.
Several things are missing. The Offer has no availability, which Google lists as a recommended property for merchant listings (opens in a new tab), along with shipping details and return policy. There is no brand, no GTIN and no BreadcrumbList. Individual Review markup sits inside the review list, which only arrives through JavaScript.
The usual fix is one JSON-LD block per product page, the format Google recommends in general, filled from your catalog attributes, and removing the theme's microdata so the page doesn't describe the same product twice. The schema markup guide walks through the properties. Run a product URL through Google's Rich Results Test after every theme or module update.
Speed: the settings Adobe recommends
Hosting and theme decide most of Magento's speed, but a few admin choices come straight from Adobe's performance guidance:
- Varnish for the full page cache. Adobe strongly recommends it in production and calls the built-in file system or database cache much slower.
- All caches on at launch, under System > Tools > Cache Management.
- Indexers on Update on Schedule, under System > Tools > Index Management, so catalog changes are indexed in the background.
- No merged JavaScript or CSS. Adobe calls those settings deprecated and says Magento's built-in bundling and minification aren't optimal, recommending third-party tools or HTTP/2 instead.
Google's Core Web Vitals targets are an LCP within 2.5 seconds, an INP of 200 milliseconds or less and a CLS of 0.1 or less, measured at the 75th percentile of page loads. Luma's front end is built on RequireJS; Hyvä, a replacement front end built on Tailwind CSS and Alpine.js, is now free and open source. A theme switch changes the HTML every crawler receives, so run the checks in the next section again afterwards.
What AI crawlers get from a Magento store
Google renders JavaScript before indexing. Most AI crawlers don't: in data Vercel published in December 2024, none of the major AI crawlers it measured executed JavaScript, including OpenAI's GPTBot, OAI-SearchBot and ChatGPT-User, ClaudeBot and PerplexityBot. The JavaScript SEO guide covers why. For a Magento store, the question is narrower: which parts of your product page exist in the HTML the server sends.
Content that only arrives through JavaScript
On a standard Luma product page, the server sends the product name, price, SKU, description, stock status and the microdata above. Three things arrive later:
- Reviews. The page ships an empty container, and a script fills it from
/review/product/listAjax/when the reviews tab opens. - Breadcrumbs. On product pages, Luma prints an empty breadcrumbs element and builds the trail with a script.
- Configurable options. Sizes and colors are drawn by a script from a JSON configuration embedded in the page, so a crawler gets the raw data but no option list.
Headless storefronts are a bigger gamble. If product details load from GraphQL after the page arrives, a crawler that doesn't run scripts may get little more than a header and a footer. Adobe's own storefront guidance gives the main reason to render on the server: it makes content visible to clients that don't execute JavaScript, "most notably" the crawlers behind AI answers.
How to check what GPTBot gets
Start by fetching a product page with GPTBot's user agent and looking for the product name, the price, one sentence from a review and the breadcrumb trail:
curl -s -A "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko); compatible; GPTBot/1.4; +https://openai.com/gptbot" https://www.example.com/driven-backpack.html -o gptbot.html
grep -c "Driven Backpack" gptbot.html
Then work through four checks:
- Compare the response with what a browser gets. An error or a challenge page means a firewall or CDN rule is answering the bot, whatever robots.txt says.
- Repeat with OAI-SearchBot. OpenAI's crawler documentation (opens in a new tab) separates the two: GPTBot collects training data, OAI-SearchBot decides what can appear in ChatGPT search answers, and sites that opt it out don't show there. Robots.txt changes take about 24 hours to reach its search systems.
- Read robots.txt as served and look for groups that name GPTBot or OAI-SearchBot, plus any
Disallow: /you didn't write. - Check the access logs for real visits from both bots and the status codes they got, and match the IP addresses against the ranges OpenAI publishes, because anyone can fake a user agent.
The AI crawler checker linked at the top runs the robots.txt part for every major AI crawler at once, and the free AEO checker reads one product page without running JavaScript, the way most AI crawlers do.
Slibur dataChatGPT, United States, 4 answers, November 17, 2026
What ChatGPT said when we asked about Magento SEO
We asked ChatGPT four questions on November 17, 2026, from the United States: which Magento 2 SEO settings matter most, how to fix duplicate content from layered navigation, whether Magento is good for SEO in 2026, and how to get a Magento store recommended by ChatGPT.
Adobe's docs were the only source on settings. Every source link in the first three answers pointed to Adobe's Experience League pages. No agency guide, SEO tool or extension vendor was cited, and no extension was named: for noindex on filtered pages, ChatGPT said you need "an SEO extension" or "a custom module" and stopped there.
The advice was sound, but the defaults were missing. It recommended both canonical tags, category paths off and redirects on, and it warned that a robots.txt block hides a noindex tag. None of the four answers said that both canonical settings ship switched off, mentioned the Disallow: /*? line in Magento's default robots rules or the page canonical change in 2.4.8. Google Search Console was the one tool that came up in three of the four answers.
For AI recommendations, it looked past Magento. Asked how to get a Magento store recommended by ChatGPT, it cited only OpenAI's own pages and put a product feed and a claimed business profile first, noting that Magento isn't integrated the way Shopify is. The Magento advice was short: prices and stock visible in the HTML, valid Product markup, and a CDN or firewall that lets ChatGPT's requests through.
After the settings: is your store in the answer?
A product page that every crawler can read is where AI visibility starts, not proof of it. Whether ChatGPT or Google AI Overviews names your store when a shopper asks for a product you sell is a separate result, and it changes as the answers change.
Slibur measures that result. It asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask, then shows which brands appear, in what position and with what tone, and which pages each AI cites as sources. The ChatGPT visibility tracker shows, question by question, whether ChatGPT names your store and which pages it cites. Plans start at $59 a month, and you can try it free for 7 days without a credit card.
Frequently asked questions
Is Magento good for SEO?
Yes, once it is configured. Magento lets you edit URL keys, meta titles and meta descriptions, writes a permanent redirect when a URL key changes, prints canonical tags and builds XML sitemaps. Several of those features ship switched off, though: both canonical settings default to No and scheduled sitemap generation is disabled. Layered navigation also creates filter and sort URLs that need rules. With those settled, the rest is content and links, as on any platform.
Should I use the category path in Magento product URLs?
No, in most stores. Use Categories Path for Product URLs gives a product one extra address for every category path it sits in, and Adobe's documentation warns that several URLs for one page might impact search rank. With the product canonical tag on, they all point to the short URL anyway, so the longer addresses add crawling without adding pages. Breadcrumbs show shoppers where they are without changing the URL.
Should I remove .html from Magento URLs?
Not on an established store. The .html suffix is Magento's default for products and categories, and changing it rewrites every indexed product and category URL in one save, so you would need a redirect for each of them and a recrawl. On a new store, decide before launch and leave it. Both suffix fields sit under Stores > Configuration > Catalog > Catalog > Search Engine Optimization; leave out the period, because Magento adds it.
How do I stop layered navigation from creating duplicate content in Magento?
Turn on category canonical tags, then block the filter, sort and internal search parameters in robots.txt with one rule per parameter. Don't rely on the Disallow: /*? line in Magento's default rules, because it also blocks paginated category pages. If filter URLs are already indexed, add noindex first, wait until Search Console shows them gone, and only then block them. Filter combinations people actually search for deserve a real subcategory or landing page.
Does Magento add product structured data by default?
Yes, as microdata in the product template: a Product with name, SKU, description and image, an Offer with price and currency, and an aggregate rating in the review summary. It leaves out availability, brand, GTIN and breadcrumbs, and individual reviews only arrive through JavaScript. One JSON-LD block per product, built from your catalog attributes and tested in Google's Rich Results Test, fills those gaps.
Can ChatGPT read a Magento store?
Its crawlers read what your server sends. In Vercel's December 2024 data, GPTBot and OAI-SearchBot didn't run JavaScript, so on a Luma store they get the product name, price, description and stock status, but not the review list, the product breadcrumbs or the option lists that scripts build. robots.txt and your CDN also have to let them in. Fetch a product page with their user agent and search the result for the details that matter.
Is Magento better than Shopify for SEO?
Magento gives you more control: you set the URL structure, robots.txt and templates yourself, while Shopify fixes the /products/ and /collections/ prefixes. The price is more to configure and more to break, from canonical defaults to layered navigation rules. Large catalogs with complex filters and several store views are where that control pays off. For the other side, see the Shopify SEO checklist.

Raúl Díaz is the founder of Slibur, the tool that asks ChatGPT, Google AI Overviews, Claude, Perplexity and Grok the questions your customers ask and shows which brands they recommend. He writes about answer engine optimization from the data Slibur collects.