A headless store separates presentation from the back end: a custom frontend renders the pages, while Shopware delivers products, categories, prices and the cart through the Store API. For search engines, only what appears under the frontend's domain counts. That is exactly where pure API channels have so far lacked two building blocks that a classic storefront brings along: SEO URLs and a sitemap with the right addresses. Since Shopware 6.7.14.0, released on September 9, 2026, headless sales channels can generate their own SEO URLs (Shopware Release Notes). Version 6.7.15.0, released on October 1, 2026, added sitemaps for headless channels with an external storefront domain (Shopware). This guide shows how to set up both in a headless store based on Shopware 6, what the frontend still has to handle itself – robots.txt, canonical, hreflang and status codes – and how to plan the switch after the Black Week sales period without losing existing URLs.
What changed with 6.7.14.0 and 6.7.15.0
In Shopware, a headless channel is a sales channel that only provides an API interface, as opposed to a sales channel with an HTML storefront (Shopware documentation). For a long time, such channels did not get readable URLs. Version 6.7.14.0 changed that: headless channels of the API type can generate SEO URLs and be used for product export feeds (Shopware Release Notes). Products, categories and landing pages receive their headless URLs through dedicated Store API routes, namely store-api.product.detail, store-api.category.detail and store-api.landing-page.detail (Shopware Release Notes).
Version 6.7.15.0 closes two gaps that were still open after that. First, Shopware now also generates sitemaps for headless channels whose domain is flagged as an external storefront, with every refresh strategy (Shopware Release Notes). Second, Store API responses requested with the sw-include-seo-urls header now also contain the SEO URLs of headless channels. Before that, the seoUrls association of products, categories and landing pages stayed empty on headless channels even though the URLs had already been generated (Shopware Release Notes). In Shopware's release news, both changes appear before the section on features outside the Community Edition (Shopware), so they belong to the open-source core.
| Building block | Before 6.7.14.0 | From 6.7.14.0 | From 6.7.15.0 |
|---|---|---|---|
| SEO URLs in the headless channel | not generated | via dedicated templates for the Store API routes | still available |
| Sitemap of the headless channel | not generated | not generated | for domains flagged as external storefront |
| seoUrls in Store API responses | empty | empty | filled when the sw-include-seo-urls header is set |
| Header in Vary and in the cache key | no | no | yes |
| Product export feeds | storefront channels only | headless channels too | headless channels too |
For headless channels, Shopware only generates SEO URLs for domains flagged as an external storefront, and the flag defaults to off (Shopware Release Notes). If a language has no such domain, Shopware silently skips it for the sitemap: the index lists no files for that language, and no warning appears (Shopware Frontends). Anyone who only watches for error messages after the update will therefore not notice the gap.
Why the frontend decides on the URLs
In a headless store, the crawler does not see Shopware but the frontend. Google processes JavaScript web apps in three main phases: crawling, rendering and indexing (Google Search Central). Pages with a 200 status code are sent to the rendering queue whether or not they contain JavaScript; with other status codes, rendering might be skipped (Google Search Central). Google still considers server-side rendering or pre-rendering a good idea because it makes the website faster for users and crawlers and not all bots can run JavaScript (Google Search Central). For a store, this means that the title, description, canonical and links belong in the delivered HTML, not only in what appears after the data has loaded.
Shopware does not know the frontend's routes on its own. Which URLs end up in SEO URLs and the sitemap depends on the sales channel domain: Shopware builds every page URL in the sitemap files from that domain, so it has to point at the frontend's public URL (Shopware Frontends). How frontend and back end work together in a headless architecture is covered in our guide to headless commerce with Shopware; the setup with Vue and Nuxt is explained in the article on Shopware Frontends.
Shopware provides the SEO URLs
Paths from the templates of the Store API routes, prefixed with the external storefront domain for each language, available through the Store API.
Shopware provides the sitemap files
Compressed files in Shopware's file system or the connected CDN, containing the URLs of the storefront domain.
The frontend handles delivery
The robots.txt in the root directory, the sitemap under its own domain or a reference to it, and appropriate status codes.
The frontend provides the head data
Title, description, exactly one canonical, hreflang for each language version and robots directives in the delivered HTML.
Flag the domain as an external storefront
The key to the new feature is a flag on the domain. Since 6.7.14.0, the sales_channel_domain entity has the field is_external_storefront, which defaults to false. For headless channels, SEO URLs are only generated for domains with this flag, and the relative path is appended to that domain's URL, one SEO URL per matching domain. The flag is set per domain in the Administration when editing the domains of a headless channel (Shopware Release Notes).
The templates are separate as well. The seo_url_template entity gained the field is_headless, which distinguishes the route families of the storefront (frontend.*) and the Store API (store-api.*); the two inheritance chains are kept apart (Shopware Release Notes). Shopware seeds three default templates for store-api.*, one each for product, category and landing page, and they mirror the relative template of the storefront (Shopware Release Notes). A template for an individual channel may also be an absolute URL and is then used as is. How to plan the variables, length and category paths of a template is shown in our article on SEO URL templates in Shopware.
- Check the version. SEO URLs for headless channels are available from 6.7.14.0, sitemaps and filled
seoUrlsfrom 6.7.15.0 (Shopware Release Notes). An update to a 6.7 version from 6.7.15.0 onward covers both building blocks. - Create domains. For each language of the headless channel, create a domain with the frontend's public URL, for example
https://www.store.example/andhttps://www.store.example/de/. - Set the flag. Turn on the external storefront for each of these domains. Without the flag, no headless SEO URLs are created, and the sitemap skips the language.
- Check the templates. The three templates for
store-api.*take over the storefront's relative template. If the headless channel should show different paths, adjust the template for that channel. - Verify the result. The
seo_urltable must contain canonical rows withstore-api.*route names for each language before the sitemap is generated.
-- Canonical headless SEO URLs per route, channel and language
SELECT route_name,
LOWER(HEX(sales_channel_id)) AS sales_channel_id,
LOWER(HEX(language_id)) AS language_id,
COUNT(*) AS url_count
FROM seo_url
WHERE route_name LIKE 'store-api.%'
AND is_canonical = 1
AND is_deleted = 0
GROUP BY route_name, sales_channel_id, language_id
ORDER BY route_name; Since 6.7.14.0, Shopware regenerates the SEO URLs of a route automatically as soon as the template field of a template is written; the work runs as a message on the asynchronous queue (Shopware Release Notes). This applies to storefront and Store API routes. Extensions and deployment scripts that write templates on every installation or update therefore trigger a full rebuild each time. The messages are only processed while workers are running – more on this in the article on message queue workers.
Fetch and output SEO URLs through the Store API
A headless frontend needs SEO URLs in two directions. First, it has to map a requested URL to a page. For that, there is the /store-api/seo-url route, which accepts GET and POST requests (Shopware source code). Shopware Frontends looks up the path there in the seoPathInfo field and picks the matching page component based on the route name (Shopware Frontends). Second, the frontend has to output links with readable URLs, for example in navigation, product listings and the canonical. The sw-include-seo-urls header determines whether the API response includes the SEO URLs of products or categories (Shopware developer documentation).
One detail affects custom frontends: headless channels store their SEO URLs under Store API route names, namely store-api.product.detail, store-api.category.detail and store-api.landing-page.detail. Shopware Frontends maps these names to their storefront equivalents (frontend.*) so that the same page components serve both channel types; anyone who queries /seo-url directly needs the same mapping (Shopware Frontends). A route name without a page component ends up there on a page with a 404 status code (Shopware Frontends).
"seoUrls": [
{
"routeName": "store-api.product.detail",
"seoPathInfo": "Example-product/SW10001",
"isCanonical": true
}
] If you cache Store API responses, you should know about a change in 6.7.15.0. Previously, the sw-include-seo-urls header was neither part of the Vary header nor of the key in the built-in HTTP cache, so a cached response without seoUrls could be served to a request that had asked for them. Now the header is listed in Vary and in the cache key: reverse proxies that honor Vary need no change, while custom cache keys should include the header (Shopware Release Notes). According to the HTTP standard, Vary describes which parts of a request might have influenced the selection of the response (RFC 9110). More on caching can be found in the article on Store API caching.
In a headless store, the frontend writes the canonical tag. Google treats rel=canonical as a strong signal and inclusion in a sitemap as a weak signal for the preferred URL (Google Search Central) and recommends absolute rather than relative paths (Google Search Central). Google picks up a canonical injected with JavaScript when rendering; this approach is not recommended, and there must be only one canonical on the page (Google Search Central). The source of the URL should be Shopware's canonical SEO URL so that sitemap, links and canonical match.
Generate and serve sitemaps for headless channels
Shopware generates a standard sitemap that is compressed and cached in the file system; for shops with many products and categories, it is split into multiple files and can be generated in the background (Shopware documentation). Updates follow a configurable strategy: scheduled through a recurring task, live on request, or manually through sitemap:generate, which then has to run again after every added or removed URL (Shopware documentation). Since 6.7.15.0, every strategy includes headless channels with an external storefront domain; with the live strategy, the files are generated when GET /store-api/sitemap is called (Shopware Release Notes).
What matters is where the files live and which URLs they contain. The loc entries point at the external storefront domain and use the paths of the headless SEO URLs. The URLs of the files themselves, as returned by GET /store-api/sitemap, point at the configured sitemap file system instead, meaning the Shopware host or its CDN, because the external storefront does not serve the files. The frontend can serve them from there, proxy them or download them through GET /store-api/sitemap/{filePath} (Shopware Release Notes). This route only accepts paths ending in .xml.gz (Shopware source code).
This raises a question that does not arise with a classic storefront: may a sitemap live on a different host than the URLs it contains? Under the sitemap protocol, all URLs in a sitemap must reside on the same host as the sitemap itself (www.sitemaps.org). The exception is the cross submission: if a host's robots.txt points to a sitemap on another host, that proves the operator controls the first host (www.sitemaps.org). Google allows sitemaps anywhere on the website; without submission through Search Console, however, a sitemap only affects URLs below its directory. For sitemaps on another host, Google names Search Console with verified properties or robots.txt as the way to go (Google Search Central).
| Approach | Where the files live | What the frontend has to do | What to watch out for |
|---|---|---|---|
| Proxy through the frontend | Shopware file system, fetched through the Store API | Serve the index and files under its own domain | only serve files from the Store API list, no open proxy |
| Reference in robots.txt | Shopware host or CDN | Sitemap line with the full URL in the storefront's robots.txt | each file contains only URLs of this one storefront domain |
| Submission in Search Console | Shopware host or CDN | Verify the storefront domain and file host as properties | works for Google, other search engines need their own way |
User-agent: *
Allow: /
# Option 1: the frontend serves the sitemap under its own domain
Sitemap: https://www.store.example/sitemap.xml
# Option 2: cross reference to the file on the Shopware host or CDN
# Sitemap: https://media.store.example/sitemap/example.xml.gz If the frontend proxies the files, it only serves what the Store API lists: the Shopware Frontends starter project answers other paths with a 404 so that the route does not become an open proxy (Shopware Frontends). Principles for protecting the interface are covered in our article on securing the Store API.
Fixed limits apply to size. A single sitemap may be at most 50 MB uncompressed or contain 50,000 URLs; larger inventories are split into multiple sitemaps, which a sitemap index file can bundle (Google Search Central). The protocol states the same upper limit in bytes, namely 52,428,800 (www.sitemaps.org). Shopware closes a file after 49,999 URLs and starts the next one (Shopware source code). For the URLs themselves, Google asks for fully qualified, absolute URLs (Google Search Central) – which is exactly what the external storefront domain provides as a prefix.
Shopware lists the dynamic pages in its files: products, categories and shopping experiences. Routes that only exist in the frontend, such as a guide section from another system or a custom store locator, are not included. The Shopware Frontends documentation recommends serving a separate sitemap file for them and adding it to the index (Shopware Frontends). URLs in the sitemap should return 200 directly and not rely on redirects, and robots.txt is not a way to canonicalize sitemap URLs (Shopware Frontends).
robots.txt, hreflang and status codes in the frontend
The robots.txt file belongs in the root directory of the host it applies to and only covers the protocol, host and port where it is posted (Google Search Central). For a headless store, this means the file Shopware serves for its storefront does not apply to the frontend's domain. Shopware keeps maintaining this default file; with 6.7.15.0, for example, it gained a rule that allows crawlers to fetch thumbnails under /thumbnail/ (Shopware Release Notes). In headless operation, however, the frontend serves its own file. The Sitemap line there needs a fully qualified URL because Google does not assume or check variants with or without www or protocol (Google Search Central).
Multilingual stores need hreflang. In the storefront, Shopware handles this through a setting on the sales channel (Shopware documentation); in a headless store, the frontend writes the annotations. Each language version must list itself as well as all other language versions, and the URLs must be fully qualified, including the protocol (Google Search Central). Since headless SEO URLs are generated per language domain, Shopware provides the paths for each version; the frontend combines them per page. Details on the markup are covered in our article on hreflang in online stores.
Status codes are the third place where headless stores lose visibility. In single-page applications with client-side routing, meaningful status codes are often hard to implement; for this case, Google describes ways to avoid soft 404 errors (Google Search Central). Shopware Frontends redirects a technical path that has a real SEO URL to that URL with a 301 (Shopware Frontends). What happens to pages that Google fetches but does not index is covered in our article on crawled but not indexed store pages.
Switching without losing existing URLs
If you have been running a headless store without headless SEO URLs, you solved the URLs differently: through a storefront channel whose domain points at the frontend, or through custom URL logic in the frontend. Both can be moved to the new approach, but not in passing. If the paths of the headless templates differ from the previous ones, public URLs change. Google treats a redirect as a strong signal that its target should become the canonical URL (Google Search Central); every changed URL therefore needs a permanent redirect to the new one.
- Export all currently valid URLs with page type and language from the previous source, whether storefront channel or custom logic
- Set up the headless channel in a test environment, flag the domains, build the index and export the new URLs
- Compare old and new URLs per page and language; duplicate, empty or truncated paths show up here
- Add a permanent redirect for every changed URL in the frontend or the upstream server
- Regenerate the sitemap, update
robots.txtand submit the new sitemap in Search Console - Monitor access logs and Search Console in the weeks that follow
The same applies to the test environment as to any Shopware update: it should work without real customer data, as our article on the Shopware staging environment shows. Comparing old and new URLs including redirects is covered in more depth in the article on SEO URLs in Shopware.
This article is published during Black Week. As a rule, you do not change the URLs, sitemap and robots.txt of a live store at this time: every missing redirect then hits campaigns, price comparison listings and newsletters with heavy traffic. What can be done now without touching the live store is the inventory, meaning reading the version, domains, sitemap status and URL list, not writing anything. The switch itself belongs in a quiet window after Cyber Monday, tested beforehand in the staging environment.
Checklist after the update
Whether the headless SEO features work does not show in a success message but in the data. The following list checks each layer separately, from the back end to Search Console.
- Shopware version 6.7.15.0 or later, entries on headless SEO URLs and headless sitemaps read in the release notes
- Each language of the headless channel has a domain flagged as an external storefront
seo_urlcontains canonical rows withstore-api.*route names for each language- A product query with
sw-include-seo-urlsreturns filledseoUrls - A custom cache key takes the header into account, if one is maintained
GET /store-api/sitemaplists files for each language- The
locentries point at the storefront domain and return 200 directly - The storefront domain's
robots.txtnames the sitemap with its full URL - Each page carries exactly one canonical and hreflang for each language version
Submitting the sitemap in Search Console shows when Googlebot accessed it and whether processing errors occurred; according to Google, however, it is merely a hint and does not ensure that Google downloads the sitemap or uses it for crawling (Google Search Central). Whether crawlers actually fetch the new URLs is shown by the frontend's access logs. How to analyze them is described in our article on log file analysis for online stores.
How we keep headless stores visible
Headless projects split responsibility for search engines across two systems, and gaps appear at the seam between them. That is why we check both sides together: the configuration in Shopware and what the frontend actually delivers.
Inventory
Version, domains, templates and sitemap status in the back end, plus canonical, hreflang and status codes in the frontend, as part of our search engine optimization.
Setup and testing
Flags, templates and sitemap delivery in a test environment, comparison of old and new URLs and redirects, implemented in the development of the frontend.
Operation after the switch
Updates, workers and sitemap generation under watch, checks in Search Console and access logs, as part of Shopware maintenance.
The same Shopware version brings further changes that operators should plan for before Shopware 6.8, such as the new document generation described in our article on Document Generation v2. If you maintain integrations, the article on API deprecations offers a process for scheduling changes in good time. Our shop check gives you a first overview of your store's condition.
This article is based on Shopware's release notes for 6.7.14.0 and 6.7.15.0 (developer documentation), Shopware's release news for October 2026, the Shopware source code on GitHub (Store API routes for SEO URLs and sitemap, splitting of sitemap files), the Shopware documentation (sitemap, sales channel), the Shopware developer documentation (request headers), the Shopware Frontends documentation (sitemap, resolving SEO URLs), Google Search Central (building and submitting sitemaps, JavaScript SEO, canonical URLs, robots.txt, localized versions), the sitemap protocol on www.sitemaps.org and RFC 9110. All information retrieved on November 4, 2026. Features and names may change with new Shopware versions.
SEO URLs for headless channels have been available since 6.7.14.0, sitemaps for headless channels with an external storefront domain and output through the sw-include-seo-urls header since 6.7.15.0 (Shopware Release Notes). For both together, a 6.7 version from 6.7.15.0 onward is usually the target.
Then Shopware does not generate SEO URLs for the headless channel, and the sitemap skips the affected language without an error message (Shopware Release Notes). The flag is off by default and is set per domain in the Administration.
Not necessarily. If it lives on the Shopware host or a CDN, the storefront domain's robots.txt can point to it; Google also accepts sitemaps submitted through Search Console with verified properties (Google Search Central). Serving it through the frontend under its own domain is usually easier to keep track of.
The file only applies to the host it is posted on (Google Search Central). The frontend's domain therefore needs its own robots.txt in the root directory. Rules from the storefront's file can be carried over but should be checked one by one, because the frontend may use different paths.
That depends on how the URLs were created so far. The templates for store-api.* take over the storefront's relative template (Shopware Release Notes); if the previous logic differs from it, paths change. Comparing old and new URLs in a test environment shows this before the switch, and every changed URL needs a permanent redirect.
Usually after the sales period around Black Friday and Cyber Monday. The inventory only reads data and can be done at any time, while changes to URLs, sitemap and robots.txt belong in a quiet window with testing beforehand. If you would like support, get in touch with us.