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 teams move from WordPress to Astro
Speed you can measure
Static HTML with little or no JavaScript is fast by default. No caching plugins needed to get there.
Less to patch
No database or PHP on the public site means far fewer security updates and less that can break.
Developers want Git
Content and code live in one repository, with pull requests, previews and history for every change.
Own the stack
Astro is open source and runs on any static host, so you can move host without another migration.
How posts get from WordPress into Astro
- 01
Export
The WXR export from Tools → Export, or the WordPress REST API for larger sites, plus a copy of wp-content/uploads.
- 02
Convert
Each post and page becomes a Markdown or MDX file with front matter: title, description, date, categories and slug.
- 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.
- 04
Route
File and dynamic routes reproduce the old permalinks, with trailingSlash set to match the old site.
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.
| WordPress | Astro | |
|---|---|---|
| Who edits | Anyone with a WordPress login | Developers in Git, or editors through a Git-based or headless CMS |
| Hosting | PHP and a database | Static files on any CDN or static host |
| Content model | Posts, pages, custom types in MySQL | Typed content collections in Markdown, MDX or JSON |
| URL control | Permalink settings and plugins | Full control through file routes and config |
| Security surface | Admin login, plugins, database | Static files; the build runs elsewhere |
| Redirects | Plugin or .htaccess | Host redirect file, or an adapter that writes it |
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.
How WordPress content maps to Astro
Decided before design starts, because it shapes the templates and the redirects.
| In WordPress | In Astro | What you get |
|---|---|---|
| Post | Entry in a blog content collection | A Markdown file with typed front matter |
| Page | .astro page or an MDX entry | Components with content kept separate |
| Category and tag | Front matter fields plus generated archive routes | Archive pages at the same paths |
| Custom post type | Its own collection and schema | Validated at build time |
| Permalinks | File and dynamic routes | The old URL pattern, reproduced |
| Yoast meta | Front matter read by an SEO component | One place that renders title, description, canonical, schema |
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 URL | In Astro | Rule |
|---|---|---|
| /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 to | A 301 in the host’s redirect file |
| Tag archives you retire | The closest live page | A 301 in the host’s redirect file, never a meta refresh |
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.
How we run a WordPress to Astro move
Six steps in our four, from the URL inventory to six weeks of monitoring after launch.
- 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.
- 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.
- 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.
- 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.
- 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.
- 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
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.
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.
Pre-launch checklist
Ten checks for a WordPress to Astro move. Tick what is done; your progress is saved in this browser.
WordPress to Astro questions
How do posts get from WordPress into Astro?
Do Astro redirects return a real 301?
Can we keep WordPress as a headless CMS?
What does it cost?
Thomas OldenburgerFounder, design and build leadStill deciding? A 30-minute call answers most of it.
Keep exploring
WordPress to Webflow migration
Off plugins and theme updates, onto a visual CMS marketing can run.
OpenWordPress to Framer migration
From a plugin-heavy theme to a fast, designer-led site.
OpenAstro vs WordPress
The platforms compared on editing, cost, SEO and fit.
OpenAstro development
How we design and build Astro sites.
Open