Migration · WordPress → Astro

WordPress to Astro migration

Move from a database, plugins and PHP to static pages built from your repository. Faster pages, almost nothing to patch, and every change reviewed like code, without losing the URLs that rank.

Typical timeline
5–10 weeks for a marketing site
Cost
Quoted after a URL inventory. A full site rebuild starts at $12,000.
SEO risk
Low to medium: Astro can reproduce almost any URL, so most pages keep their path; trailing-slash settings are the usual trap.
Moves cleanly
Posts, pages, categories, tags, metadata, images, almost every URL
Must be rebuilt
Theme, plugins, forms, search, comments, the editing workflow
Why move

Why teams move from WordPress to Astro

01

Speed you can measure

Static HTML with little or no JavaScript is fast by default. No caching plugins needed to get there.

02

Less to patch

No database or PHP on the public site means far fewer security updates and less that can break.

03

Developers want Git

Content and code live in one repository, with pull requests, previews and history for every change.

04

Own the stack

Astro is open source and runs on any static host, so you can move host without another migration.

Content

How posts get from WordPress into Astro

  1. 01

    Export

    The WXR export from Tools → Export, or the WordPress REST API for larger sites, plus a copy of wp-content/uploads.

  2. 02

    Convert

    Each post and page becomes a Markdown or MDX file with front matter: title, description, date, categories and slug.

  3. 03

    Validate

    Content collections check every entry against a Zod schema at build time, so a missing title or broken date fails the build instead of going live.

  4. 04

    Route

    File and dynamic routes reproduce the old permalinks, with trailingSlash set to match the old site.

Before and after

WordPress next to Astro

What changes for the people who edit, maintain and pay for the site. The full comparison is on Astro vs WordPress.

WordPressAstro
Who editsAnyone with a WordPress loginDevelopers in Git, or editors through a Git-based or headless CMS
HostingPHP and a databaseStatic files on any CDN or static host
Content modelPosts, pages, custom types in MySQLTyped content collections in Markdown, MDX or JSON
URL controlPermalink settings and pluginsFull control through file routes and config
Security surfaceAdmin login, plugins, databaseStatic files; the build runs elsewhere
RedirectsPlugin or .htaccessHost redirect file, or an adapter that writes it
What comes across

What comes across, what gets rebuilt

Seven areas, tagged by how much survives the move.

Moves over Content

Posts and pages convert from the WXR export to Markdown with front matter, one file per entry.

Moves over CMS collections

Post types become content collections with a Zod schema, so missing fields fail the build.

Moves over SEO metadata

Titles, descriptions and canonicals move into front matter and render through one SEO component.

Rebuilt Forms

Rebuilt with a form service or a small serverless function, since static pages have no server.

Replaced Integrations

Plugins are replaced by scripts, build-time data fetching or a serverless function.

Partly Animations

CSS transitions carry over in spirit; heavier effects are rebuilt with CSS or a small script.

Moves over Media

Images move into the repository or an asset host, optimized by Astro’s image pipeline.

Content model

How WordPress content maps to Astro

Decided before design starts, because it shapes the templates and the redirects.

In WordPressIn AstroWhat you get
PostEntry in a blog content collectionA Markdown file with typed front matter
Page.astro page or an MDX entryComponents with content kept separate
Category and tagFront matter fields plus generated archive routesArchive pages at the same paths
Custom post typeIts own collection and schemaValidated at build time
PermalinksFile and dynamic routesThe old URL pattern, reproduced
Yoast metaFront matter read by an SEO componentOne place that renders title, description, canonical, schema
Redirects

301 redirects on a static Astro site

On a plain static build, Astro’s redirects config writes meta-refresh pages, not 301s. Real 301s go into the host’s redirect file, such as the _redirects file on Netlify, or an adapter writes them. Set trailingSlash and build.format to match the old URLs first (Astro and Netlify docs, checked November 2026).

Old URLIn AstroRule
/2023/05/post-name//2023/05/post-name/No rule: a dynamic route reproduces the permalink
/about//about/No rule, once trailingSlash and build.format match the old site
/post-name/attachment/image/The post it belongs toA 301 in the host’s redirect file
Tag archives you retireThe closest live pageA 301 in the host’s redirect file, never a meta refresh
After launch

Who edits after the move

Markdown in Git

Developers edit content and code in one repository, with a pull request and a preview for every change.

A Git-based or headless CMS

Editors get forms and a preview link through Keystatic or Sanity, while the content stays in your repository or CMS.

WordPress, headless

Astro reads the WordPress REST API at build time. Editors keep their workflow; you keep WordPress to maintain.

Ask · Draft · Decide · Ship

How we run a WordPress to Astro move

Six steps in our four, from the URL inventory to six weeks of monitoring after launch.

  1. 01

    Ask URL inventory and baseline

    We crawl the WordPress site, pull the sitemap and Search Console data, and record traffic, links, title, description and canonical for every URL. WordPress sites hide URLs in tag, author, date and attachment archives, so we crawl those too, not only the XML sitemap.

  2. 02

    Ask Content model and redirect map

    Every URL gets one decision: keep, redirect or retire. WordPress concepts are mapped to Astro (see the table above), and you sign off the redirect map before design starts.

  3. 03

    Draft Design system and templates in Astro

    Agents draft layouts and components; we design the templates properly in Astro. Each template reaches you as a preview link in clickroom before content goes in.

  4. 04

    Draft Content import and clean-up

    Content becomes Markdown or MDX files in content collections, checked by a Zod schema at build time, so a missing title or broken date fails the build instead of going live. Broken links, missing alt text and duplicate titles get fixed on the way.

  5. 05

    Decide QA on staging, then your approval

    Every old URL is tested for one redirect to a live page; titles, descriptions, schema and speed are compared with the baseline. A senior person signs off the QA report, then you approve the staging preview.

  6. 06

    Ship Launch, monitor, hand over

    DNS switches, the new sitemap goes to Search Console, and we watch coverage and 404s for six weeks. Your team edits Markdown in the repository or through a Git-based or headless CMS such as Keystatic or Sanity, with a preview link per change.

Ask · Draft · Decide · Ship: agents draft the inventory, the checks and the first templates; a senior person makes every decision, and nothing goes live without your yes. How we work

Be honest

Timeline, cost and when to hire us

Staying put is sometimes the right call. We would rather say so than run a move that does not pay back.

Typical timeline
5–10 weeks for a marketing site
SEO risk
Low to medium: Astro can reproduce almost any URL, so most pages keep their path; trailing-slash settings are the usual trap.
Cost
Quoted after a URL inventory. A full site rebuild starts at $12,000.
As a plan
Design + Development at $12,000 a month, or build only from your design on Development at $8,000 a month. No minimum term.

Hire help if

  • A business site with plugins, forms and many URLs
  • Editors need a CMS, not Markdown
  • Rankings matter and URLs must keep their exact form
  • You want a redesign in the same move

Stay put, or do it yourself, if

  • A personal blog, and you are at home in Git: the Astro docs walk you through it.
  • Non-technical editors publish daily and you don’t want to run a CMS alongside the site.
  • Comments, memberships or a store live inside WordPress and you want them to stay.
  • Nobody on your side can review a pull request or own a deploy pipeline.
  • The site is small, stable and fast enough, and the real issue is copy or design.
Worries

What usually worries teams

Our marketers can’t edit Markdown.

They don’t have to. We connect a Git-based or headless CMS such as Keystatic or Sanity, so editors get forms and a preview link while the content stays in your repository or CMS.

We’ll need a developer for every change.

For layout changes, yes. For text, posts and images, no, if a CMS is in place. Be honest about which changes your team makes weekly before choosing Astro.

Is the URL structure safe?

Astro can reproduce WordPress permalinks almost exactly. The common miss is the trailing slash, which we set in config to match the old site before launch.

Interactive checklist

Pre-launch checklist

Ten checks for a WordPress to Astro move. Tick what is done; your progress is saved in this browser.

Before build
During build
Before launch
After launch
0

FAQ

WordPress to Astro questions

How do posts get from WordPress into Astro?
We convert the WXR export (or the REST API) into Markdown files with front matter, then validate them against a content-collection schema. Broken entries fail the build, so they get fixed before launch.
Do Astro redirects return a real 301?
On a plain static build, Astro’s redirects config writes meta-refresh pages. For true 301s we write the host’s redirect file or use an adapter that writes it, and test every old URL.
Can we keep WordPress as a headless CMS?
Yes. Astro can read from the WordPress REST API at build time. It keeps your editors’ workflow but keeps WordPress to maintain, so we only suggest it when editing habits matter more than maintenance.
What does it cost?
We quote after a URL inventory. An Astro site starts at $12,000 as a fixed project; build only, from your design, runs on Development at $8,000 a month.
Thomas OldenburgerFounder, design and build lead

Still deciding? A 30-minute call answers most of it.

Got a brief, or half of one?

Book a free 30-minute call. You leave with a straight answer on scope, price and timing, even when we are not the right fit.