WordPress to Astro migration
WordPress to Astro, without the plugin stack
A fast, code-based site you own, with content in files or a headless CMS. Every URL kept, every redirect a real 301.
- Typical timeline
- Scoped after the URL inventory
- Cost
- Quoted after the URL inventory
- SEO risk
- Medium: URL patterns change unless routes are matched exactly
- Moves cleanly
- Posts, pages, custom fields and taxonomies (as Markdown or CMS entries)
- Must be rebuilt
- Theme, plugin features, forms, search, editing workflow
A WordPress to Astro migration replaces the theme and plugins with an Astro site in code. Content comes out of the WordPress XML export and lands in Astro content collections as Markdown, or in a headless CMS if editors need a UI; WordPress can also stay on as the headless backend. Pages ship as plain HTML, and redirects live in the host’s redirect file so they are real 301s.
Why teams move
Why teams move from WordPress to Astro
Editors wait on developers for layouts
When the content model is squeezed into posts and pages, every new page type is a developer job. In Astro the model is defined in code once and reused.
Plugin upkeep eats real hours
Updates and security patches take time every month, and a bad update has broken the site before. Astro has no plugin layer at runtime.
Content has to go to more places
Structured content can feed the site, docs, a newsletter and AI tools, and structured pages are easier for answer engines to read.
Performance or design that themes can’t meet
Astro ships plain HTML and adds JavaScript only where a component needs it, so the design isn’t limited by a theme and pages stay light.
Old vs new
WordPress vs Astro, for this move
What moves, what doesn’t
What comes across from WordPress
The writing moves. The theme, plugins and admin don’t; they’re replaced on purpose.
- Moves over
- Exported, imported, then checked by hand
- Partly
- Some of it imports, the rest is redone
- Rebuilt
- Nothing to import, we rebuild it
- Replaced
- Swapped for the new platform’s equivalent
Content model
How WordPress content maps to Astro
Posts
Blog posts kept in the WordPress database, written in the block editor and exported as one XML file.
On WordPress:A blog content collection
One Markdown file per post in the repo, with the post’s details kept as frontmatter at the top.
On Astro:What you get src/content/blog/*.md
Frontmatter holds title, date, author, categories and SEO fields.
Custom post types
Extra content types such as case studies or resources, registered by the theme or a plugin.
On WordPress:A collection each
Each type gets its own content collection, with a schema that lists every field it needs.
On Astro:What you get src/content/case-studies/
ACF and custom fields
Extra fields on posts and pages, added by Advanced Custom Fields or by the theme’s own code.
On WordPress:Typed fields or data files
Typed frontmatter fields or data files, so a missing or malformed value shows up as a build error.
On Astro:What you get src/content.config.ts
Categories and tags
Taxonomies that group posts, each with an archive page that WordPress generates by itself.
On WordPress:Fields plus archive pages
Fields on each post, plus generated archive pages only where they already earn search traffic.
On Astro:What you get src/pages/blog/tag/[tag].astro
Pages
Pages built in the block editor or a page builder, often carrying shortcodes and inline styles.
On WordPress:.astro pages
Page files built from shared section components, with their SEO tags set from the same data.
On Astro:What you get src/pages/pricing.astro
Process and timeline
How we move a WordPress site to Astro
SEO safety
The pre-launch checklist for WordPress to Astro
Rankings are lost in three ways: broken URLs, missing on-page signals and crawl problems. 4 stages, from the first crawl to the weeks after launch, close all three. Tick the checks as you go; your progress stays in this browser.
Next: URL inventory.
Stage 1 of 4
Before the build
Know every URL and where it goes before anything is designed.
Stage 1 done. Your URLs are safe.
Stage 2 of 4
During the build
Carry every on-page signal across, page by page.
Stage 2 done. Every signal made the move.
Stage 3 of 4
Before launch
Real redirects and a clean path for crawlers, ready for the switch.
Stage 3 done. Clear to switch the domain.
Stage 4 of 4
After launch
Watch what Google sees in the first weeks and fix it fast.
Stage 4 done. You’re watching the right numbers.
All 4 stages done, 10 of 10 checks
Ready to launch
Every check for WordPress to Astro is ticked. Switch the domain, submit the sitemap and keep an eye on Search Console for the first weeks.
Want us to run this for you?
Book a callWhat people worry about
What WordPress teams worry about
Our editors don’t write Markdown
Then they don’t have to. A headless CMS gives them a visual editor and previews, or WordPress stays on as the backend while Astro serves the site.
We’ll lose rankings with the URL change
Astro lets us choose every route, so most URLs don’t change at all. The ones that do get a one-to-one 301 at the host.
Only a developer can change the site now
Content edits stay with editors. Layout changes become code changes, which developers and coding agents make through reviewed pull requests.
When not to migrate
When to stay on WordPress
The site is a few dozen pages and a plugin or two covers what you need. Better hosting and caching are the cheaper fix.
WooCommerce is at the centre of the business.
A large editing team lives in Gutenberg and needs to keep it.
You depend on WordPress user management, multisite or a membership plugin.
Not sure which side you’re on?
If one of these is you, staying on WordPress is probably the better call. We’ll say so on the first call.
FAQ
WordPress to Astro questions
Moving from WordPress to Astro?
Every URL mapped, the CMS rebuilt, SEO kept. We scope it on a 30-minute call.
Can we keep WordPress as the CMS?
Yes. Headless WordPress keeps editors in wp-admin while Astro builds the site from its content. It’s the lower-risk path for editors; the cost is two systems to maintain.
Astro or Next.js?
Astro for content-led marketing sites with little interactivity, since it ships very little JavaScript by default. Next.js when the site shares components or logic with a React app.
Do media files come with the export?
No. The WordPress export links to media rather than including it. On self-hosted WordPress we copy the uploads folder; WordPress.com has its own media export.
How do redirects work on Astro?
We put them in the host’s redirect file (Cloudflare Pages, Netlify and similar) so they’re real server-side 301s, which is what Google recommends for site moves.
Keep exploring
- WordPress to WebflowPlugins out, structured CMS collections in, every ranking URL kept.
- WordPress to FramerFor marketing sites that need to look sharp and change every week.
- Framer to AstroLeave the hosted builder for code you own. The move we made with our own site.
- Webflow to AstroOut of the hosted builder and into a codebase you own.
- Webflow to FramerFor small teams that redesign often and want motion without the setup.
- Framer to WebflowWhen the content library, the team or SEO outgrows Framer’s CMS.
Official sources
- WordPress.org: Tools > Export screen (opens in a new tab)wordpress.org
- WordPress.com: Export your content (opens in a new tab)wordpress.com
- WordPress developer docs: Backing up your files (opens in a new tab)developer.wordpress.org
- Astro docs: Content collections (opens in a new tab)docs.astro.build
- Astro docs: Routing and redirects (opens in a new tab)docs.astro.build
- Astro docs: Sitemap integration (opens in a new tab)docs.astro.build
- Cloudflare Pages: Redirects (opens in a new tab)developers.cloudflare.com
- Netlify: Redirects and rewrites (opens in a new tab)docs.netlify.com
- Google Search Central: Site moves with URL changes (opens in a new tab)developers.google.com
- Google Search Central: Redirects and Google Search (opens in a new tab)developers.google.com
Press Escape to close.
Platform facts checked on . Platforms change their exports and limits; we recheck at the start of every project.
You've reached the end, so now…
Tell us what you’re building.
We’ll help you map the right scope, team, timeline, and next steps.
Book a call