> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: About SEO Support

## Article: About SEO Support

## Article Link: https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/about-seo-support.md

## Article Content:

# About SEO Support

Wix-managed headless projects built with the [Astro integration](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/about-the-astro-integration.md) include a full set of SEO features. Wix generates SEO tags from the settings a Wix user edits in the dashboard, including:

- Titles
- Meta descriptions
- Canonical links
- Social tags
- Robots directives
- Structured data

## Page types

How a page gets its SEO depends on what kind of page it is:

- **Main pages** live at a single, fixed URL, such as your home, about, or contact page. Main pages get their SEO automatically, with no code.
- **Item pages** render one business-solution item from a parameterized route, such as a product at `/product/[handle]`, a blog post at `/blog/[slug]`, or a single category that lists the items in it. SEO support for item pages require code, since Wix can't resolve an item's tags until it knows which item the request is for.

> **Note**: A listing page is a main page too, even when it shows business-solution content. For example, an all-products page or a blog index is still one fixed URL.

## What works out of the box

Wix's Astro middleware resolves the SEO tags for each main page at request time, based on the dashboard settings, and injects them into the page `<head>`. There's nothing to install, register, or render. Each injected tag carries a `wix-seo-tag="true"` attribute, so you can recognize it in the rendered HTML.

A Wix user controls these tags in the dashboard, under **SEO & GEO** > [**SEO Settings**](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fseo-home%2Fseo-settings):

- **Settings for main pages**: The title tag, meta description, focus keyword, and indexability of each main page. Each page's advanced settings also cover canonical links, custom meta tags, and structured data.
- **Social share**: The social tags used when a page is shared, such as Open Graph and Twitter.
- **Robots.txt editor**: The contents of `robots.txt`.

### Default structured data

Wix automatically generates structured data for some pages, based on the site information it recognizes. What you can do with it depends on the page:

- **Homepage**: Wix generates `LocalBusiness` and `WebSite` JSON-LD based on the business name and address you enter on the site. If the site doesn't have a business name or address, Wix can't generate the `LocalBusiness` schema. In the home page's **Advanced SEO** settings, under **Structured data markup**, you can't edit either schema, but you can exclude either from the page, such as when you render your own version of it in code and don't want both to appear together.
- **Business-solution page types**: For example, store product pages get a `Product` schema, and blog posts can get schemas such as `Article`, `BlogPosting`, `HowTo`, or `FAQ`. Unlike the homepage schemas, a Wix user can edit these in the dashboard's SEO settings for that page type.

Structured data that your own code adds coexists with the dashboard-managed structured data without conflict.

<blockquote class="important">

__Important:__ Wix keys main-page SEO records per route, not per locale. On a [multilingual](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/add-multilingual-support.md) site, secondary-language versions of a main page don't get their own title or meta description. Instead, the title falls back to a machine-derived placeholder built from the URL path, and Wix omits the meta description entirely.

</blockquote>

### Robots.txt and sitemap.xml

Wix serves `robots.txt` automatically. The `robots` option of the `wix()` integration defaults to `true`, so Wix serves `robots.txt` from the dashboard settings. Because the tags come from the dashboard, a Wix user can change a main page's SEO without a code change or a redeploy.

> **Note:** If your project also defines a custom `src/pages/robots.txt.ts` route, Astro logs a router-collision warning at build and dev time and currently serves your project's route instead of Wix's, which is likely not what you want. To serve your own `robots.txt`, pass `wix({ robots: false })` in `astro.config.mjs` instead of adding a competing route.

Wix also serves `sitemap.xml` automatically. `/sitemap.xml` is a sitemap index: it lists a `pages-sitemap.xml` built from your page registry, plus a separate sitemap for each installed business solution, such as Stores products or Blog posts. For how these pieces fit together, see [About Sitemaps in the Astro Integration](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/about-sitemaps-in-the-astro-integration.md).

<blockquote class="important">

__Important:__ If a Wix user turns off a site's overall indexability in the dashboard, `/sitemap.xml` returns a 404. This is standard across all Wix sites, not specific to headless.

</blockquote>

To set this up and verify it on your live site, see [Manage SEO for Main Pages](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/manage-seo-for-main-pages.md).

### AI and LLM discovery

Wix automatically generates and serves `/llms.txt` for eligible sites, based on the site's actual page content. This requires the site to have a custom domain and search engine indexing enabled. A Wix user can edit its contents, reset it to the auto-generated version, or turn it off, all from the dashboard's SEO & GEO settings.

Every Wix site also has its own built-in MCP server, at `<your-domain>/_api/mcp`, independent of `llms.txt`. See [About the Wix Site MCP](https://dev.wix.com/docs/overview/ai-the-wix-platform/about-the-wix-site-mcp.md).

<blockquote class="tip">

**Tip:** Keep each tag in one place. For main pages, let the dashboard own the title, meta description, canonical link, and social tags, and don't set those same tags in your layout.

</blockquote>

## What you build in code

Automatic injection covers main pages only. Anything that depends on which item a request is for, or on data your frontend fetches, you render yourself.

- **Item pages**: The item pages of [business solutions](https://dev.wix.com/docs/go-headless/business-solutions/featured-business-solutions.md), such as [Wix Stores](https://www.wix.com/app-market/web-solution/wix-stores) products, [Wix Bookings](https://www.wix.com/app-market/web-solution/bookings) services, [Wix Events](https://www.wix.com/app-market/web-solution/events), and [Wix Blog](https://www.wix.com/app-market/web-solution/wix-blog) posts, plus their category pages. You register each route and render its tags in code using the [`@wix/seo`](https://www.npmjs.com/package/@wix/seo) package. Registering a route also adds it to the page registry, which feeds the sitemap and the dashboard's SEO settings for that page type. As with main pages, a Wix user sets the actual tag values in the dashboard.
- **Custom structured data**: schema.org JSON-LD you build from an item's data. Wix already auto-generates structured data for some business-solution page types, as described in [Default structured data](#default-structured-data) above. Render your own for page types the dashboard doesn't cover, or when you need it generated from item data your page fetched.
- **Client-side tag updates**: Re-resolving and swapping tags during in-app navigation without a full page reload.

For all three, including the per-vertical values, see [Add SEO Support to Item Pages](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/add-seo-support-to-item-pages.md).

## SEO outside the Astro integration

Everything in this article is specific to Wix's Astro integration. Whether this automation applies to your project depends on that integration, not on who hosts your project. None of it applies if you're building either of the following instead:

- A [self-managed headless](https://dev.wix.com/docs/go-headless/self-managed-headless/about-self-managed-headless.md) project.
- A Wix-managed headless project built with a framework other than Astro. See [About Supported Frameworks](https://dev.wix.com/docs/go-headless/wix-managed-headless/about-supported-frameworks.md) for what counts as "other frameworks."

In both cases, Wix doesn't serve `robots.txt` or `sitemap.xml` for you. SEO tags from the dashboard are added in the browser when [site scripts](https://dev.wix.com/docs/go-headless/self-managed-headless/site-scripts/load-site-scripts-on-a-self-managed-project.md) are loaded. A static site you upload to Wix already includes that tag. On a self-managed project, or on a Wix-managed project that isn't an upload, add the tag yourself. Crawlers that don't run JavaScript don't see tags added this way. For the tags you render yourself, see [About SEO for Self-Managed Headless Projects](https://dev.wix.com/docs/go-headless/self-managed-headless/seo/about-seo-for-self-managed-headless-projects.md).

## See also

- [Manage SEO for Main Pages](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/manage-seo-for-main-pages.md)
- [Add SEO Support to Item Pages](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/add-seo-support-to-item-pages.md)
- [About Sitemaps in the Astro Integration](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/feature-guides/seo/about-sitemaps-in-the-astro-integration.md)
- [Reserved URL Paths for the Astro Integration](https://dev.wix.com/docs/go-headless/wix-managed-headless/full-integration-astro/development/reserved-url-paths-for-the-astro-integration.md)
- [About the SEO Tags API](https://dev.wix.com/docs/api-reference/site/viewer/seo-tags/introduction.md)
- [About SEO for Self-Managed Headless Projects](https://dev.wix.com/docs/go-headless/self-managed-headless/seo/about-seo-for-self-managed-headless-projects.md)