We moved our own site from Webflow to Astro, Sanity and Cloudflare in November 2026 and kept every URL. This guide is the process we followed, written so you can follow it too. If you are still deciding whether to move, read Webflow vs Astro first.
Before you start
Two decisions shape everything else:
- Keep every URL. Your rankings belong to your addresses. The new site should answer at the same paths wherever possible.
- Decide what editors can change. In Webflow, editors can move layouts. On the new site, words and images are edited in the CMS and layouts are code. Agree on that early.
Step 1: List every URL
Combine three sources into one sheet: a crawl of the live site, the pages report from Google Search Console and the sitemap. Add the old addresses Google still knows about: renamed CMS items often keep showing up for months. Every row gets a new address or a redirect.
Step 2: Get the content out of Webflow
Webflow lets you export each CMS Collection as a CSV file. For larger sites, the Webflow Data API gives you every item as JSON, including rich text and image URLs. We took a full snapshot through the API, which also gave us page titles and descriptions. Download every image: Webflow's asset URLs stop being yours when the site closes.
Step 3: Model the content in Sanity
Map each Webflow Collection to a document type in Sanity, field by field. This is the moment to fix what bothered you: split a long rich text field into structured parts, add proper SEO fields, add help text for editors.
Step 4: Import with a script
Turn the export into an NDJSON file, one document per line, and import it with the Sanity command line tool:
// npm install csv-parse
import { readFileSync, writeFileSync } from 'node:fs';
import { parse } from 'csv-parse/sync';
const rows = parse(readFileSync('webflow-blog-posts.csv'), { columns: true });
const docs = rows.map((r) => ({
_id: `post-${r.Slug}`,
_type: 'post',
title: r.Name,
slug: { _type: 'slug', current: r.Slug },
publishedAt: r['Published On'],
seoDescription: r['Meta Description'],
}));
writeFileSync('import.ndjson', docs.map((d) => JSON.stringify(d)).join('\n'));
console.log(`${docs.length} posts ready`);npx sanity dataset import import.ndjson productionRich text needs converting to Sanity's format, called Portable Text. Sanity's block tools convert HTML, and an AI assistant is good at writing and checking that conversion, as long as you spot-check the results.
Step 5: Rebuild the design in Astro
Rebuild the look as components, keeping class names and spacing close to the original so the site feels the same to returning visitors. Webflow pages load jQuery and the Webflow runtime. You need neither. Write the few interactions you use in plain JavaScript or CSS.
Step 6: Keep the URLs
Astro builds whatever paths you choose, so you can match Webflow's Collection paths exactly:
---
import { sanity } from '../../lib/sanity';
import Base from '../../layouts/Base.astro';
export async function getStaticPaths() {
const posts = await sanity.fetch(`*[_type == "post"]{ title, "slug": slug.current }`);
return posts.map((post) => ({ params: { slug: post.slug }, props: { post } }));
}
const { post } = Astro.props;
---
<Base title={post.title}>
<h1>{post.title}</h1>
</Base>For addresses that do change, list them in _redirects, or better, manage them in the CMS and generate the file at build time.
Step 7: Carry over search details
Titles, descriptions, Open Graph images, canonical tags and structured data. Check every template against the old site's source. This is where many migrations quietly lose rankings.
Step 8: Set up editing and guardrails
Give editors a Studio shaped around the content, visual editing on a preview, and checks for broken links and missing alt text. If anyone will use an AI assistant on the code, add the rules and locks from the CLAUDE.md guide before the first change.
Step 9: Launch and watch
Point the domain at Cloudflare, publish, then crawl your old URL list: every address should load or redirect once. Watch Search Console for pages reported as not found and fix them as they appear. We found one old case study address in the first week that predated our snapshot, and redirected it the same day.
What we got
- Every Webflow URL kept.
- Lighthouse scores of 100 for accessibility, best practices and SEO on the pages we tested.
- About 3 KB of our own JavaScript per page, with no Webflow runtime or jQuery.
- Publish to live in about a minute, with checks on every build.
The full story is in our case study. If you want the same for your site, our website migration service does exactly this.