Skip to content
Tutorials Center
My learning

Topics

Lesson 30 of 37 ยท SEO and Performance

Structured Data, Sitemaps and Redirects

Add JSON-LD structured data, manage XML sitemaps and robots.txt, and set 301 redirects in Wix and Webflow. Includes runnable JSON-LD, sitemap and redirect-map stand-ins.

Beyond titles and headings, three technical pieces help search engines understand and crawl your site: structured data (labels that describe your content), sitemaps and robots rules (a map and a set of entry rules), and redirects (signposts when a page moves). Both platforms support all three, with different amounts of automation.

Wix and Webflow are hosted and cannot run on this site. Where a feature is described, check the current documentation for its exact location and plan requirements. The runnable code consists of stand-in generators that produce the same kinds of output the platforms create or accept.

Structured data and JSON-LD

Structured data is machine-readable information about a page: this page is a product with this price, an article by this author, a business with these opening hours. The common format is JSON-LD, a <script type="application/ld+json"> block using the schema.org vocabulary. It can make pages eligible for rich results such as star ratings, prices, FAQ-style snippets or event dates in search results (eligibility is decided by search engines, and some rich result types have changed or been restricted over time).

How you add it:

  • Wix adds some structured data automatically for stores, blogs, events and bookings, and has a Structured Data area in the page's advanced SEO settings (on supported plans) where you paste your own JSON-LD, sometimes with dynamic values from your content.
  • Webflow lets you add JSON-LD in an Embed element on a page or in the page's custom code (head). For CMS pages you can place CMS field values inside the embed using the field insertion option, so each item gets its own data.

Here is a generator for a Product, which is the kind you would paste into an embed.

JS Stand-in: generate Product JSON-LD

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Rules to follow: describe only what is visible on the page, keep prices and availability accurate, use valid JSON (a stray comma breaks it), and test with a rich results testing tool before publishing. Never mark up content that is not there; that violates search guidelines.

Common types for site owners: Organization or LocalBusiness (name, address, opening hours), Article or BlogPosting, Product, FAQPage (where supported), Event, BreadcrumbList.

XML sitemaps

An XML sitemap lists your important URLs, so crawlers find them. Both platforms create one automatically:

  • Webflow: enable Auto-generate sitemap in Site settings (SEO); it lives at /sitemap.xml and includes pages and CMS items that are not excluded from indexing.
  • Wix: generates /sitemap.xml automatically, which lists pages, products and posts, and excludes pages you set to noindex.

Submit the sitemap address in Google Search Console and Bing Webmaster Tools. You do not need to submit it again after each change; search engines revisit it.

JS Stand-in: build a sitemap

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Robots.txt

robots.txt at the site root tells crawlers which paths they should not crawl. Webflow lets you edit it in Site settings (SEO); Wix generates one and offers an editor in the SEO tools on supported plans. Remember: robots.txt controls crawling, not indexing. A blocked page can still appear in results if other sites link to it. To keep a page out of results, use noindex rather than only blocking it.

Redirects

When a URL changes or a page is removed, visitors and search engines need a signpost. A 301 redirect says "moved permanently" and passes most search value to the new address; a 302 says "temporary".

  • Webflow: Site settings, Hosting, 301 redirects. Enter the old path and the new path (or full URL). Webflow supports wildcard-style rules on some plans for moving groups of pages.
  • Wix: the URL Redirect Manager in the SEO tools; you can add rules one by one or import a list in bulk. Wix often offers to create a redirect when you change a page URL.

Principles:

  1. Redirect each old URL to the most relevant new page, not everything to the home page.
  2. Avoid chains (A to B to C): point A straight to C. Chains slow pages and waste crawl effort.
  3. Avoid loops (A to B to A).
  4. Keep redirects when you migrate to or from these platforms.

A redirect map checker

Before importing a redirect list, check it. This stand-in resolves chains and flags loops.

JS Stand-in: resolve redirect chains

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Checking your work

After changes: test a few old URLs in a browser (they should land on the right page), look at Search Console for crawl errors and coverage, and re-check the sitemap loads. Keep a spreadsheet of old and new URLs for any redesign.

Common mistakes

  • Adding structured data for content that is not visible.
  • Invalid JSON-LD (trailing commas, curly quotes).
  • Redirecting every removed page to the home page.
  • Blocking pages in robots.txt that you want deindexed (use noindex).
  • Leaving staging or "thank you" pages in the sitemap.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What does JSON-LD do?

    It labels content using schema.org vocabulary so search engines understand it.
  2. 2. Which status code signals a permanent move?

    A 301 means the page moved permanently and passes most search value.
  3. 3. robots.txt controls

    robots.txt asks crawlers not to fetch paths; use noindex to keep pages out of results.
  4. 4. Why avoid redirect chains?

    Each hop adds delay, so point old URLs straight at the final destination.

Summary

  • JSON-LD labels page content for search engines; mark up only what is visible and keep it valid.
  • Wix and Webflow generate sitemaps automatically; submit them in Search Console.
  • robots.txt blocks crawling; noindex blocks indexing.
  • Use 301 redirects to the most relevant new page, and avoid chains and loops.

Next: Performance, Images and Core Web Vitals