Home / Blog / Migrate WordPress to static
Migration ยท Pillar guide

How to Migrate WordPress to a Static Site in 2026 (Without Losing Content or Rankings)

Short answer: To migrate WordPress to a static site, export your content, rebuild it as static HTML (ideally with a generator like Astro), set up 301 redirects so your URLs and rankings carry over, replace plugin features like forms with lightweight services, and deploy to a fast host such as Cloudflare Pages. The catch most guides skip: a plain export is frozen, you can no longer edit it without WordPress. A managed platform keeps the site editable in plain language afterward.

Key takeaways

  • The move itself is not the risk. Missing 301 redirects and a missing sitemap are what cost rankings.
  • Speed and security come for free with static hosting: no PHP, no database, no plugins to exploit or update.
  • Decide the editing question first. An export freezes the site; a migration keeps it editable. Pick before you start.
  • Budget a few weeks for Google to recrawl. Small fluctuations during that window are normal, not a problem.
  • Keep WordPress running in parallel for two weeks so you can compare pages and roll back instantly.

WordPress powers a huge share of the web, and for years it was the obvious choice. But for content-heavy sites, consultancies, knowledge bases, editorial and expert sites, it has quietly become more work than it's worth: plugin updates, security warnings, slow load times, and a developer invoice for every small change.

A static site solves most of that. Instead of building each page on the fly from a database, a static site serves ready-made HTML files. The result is dramatically faster, far more secure, and cheap to host. This guide walks through exactly how to migrate, in plain language, and flags the one trade-off you need to plan for.

Why move from WordPress to a static site?

Three reasons come up again and again, and all three are real:

  • Speed. Static pages have no database lookup or PHP to run, so they load almost instantly. That helps both visitors and your Core Web Vitals (a Google ranking signal).
  • Security. When WordPress sites get hacked, it's almost always through a vulnerable plugin. A static site has no database and no plugins to exploit, there's simply far less to attack.
  • Cost & stability. No more "white screen of death", no plugin conflicts, and hosting on a free or near-free tier like Cloudflare Pages or Netlify.

See your site before you migrate

A free scan detects your stack, counts your pages and maps your content โ€” the exact inventory we'd carry over.

Run a free check โ†—

The trade-off nobody mentions: a static export is frozen

Here's the part most tutorials gloss over. The popular plugin exporters, Simply Static, WP2Static, take a snapshot of your WordPress site and turn it into HTML files. Visitors see the same pages, but the output is not a maintainable site. To change a single sentence, you have to go back into WordPress, edit there, and re-export the whole thing.

So you face a choice:

  • Keep WordPress running in the background purely as an editor (you still carry all its maintenance, you just hide it from visitors), or
  • Use a managed platform that migrates you off WordPress entirely and keeps the static site editable, without you ever touching code.

This is exactly the gap ShiftPress fills. It moves your site off WordPress into clean, version-controlled code, then lets you edit it by chatting in plain language, preview every change, approve it, and roll it back with one click. No WordPress, no plugins, no developer.

Which conversion method should you use?

There are four ways to turn WordPress pages into static files, and they differ far more in what happens afterwards than in what they produce on day one.

MethodWhat it isBest for
Simply Static / StaaticA wp-admin plugin that writes your pages to HTMLSmall content sites, non-developers
WP2StaticThe same job with a deploy pipelineDevelopers automating publishing
wget / HTTrackA crawler that mirrors the live site as filesArchiving a site you're switching off
Managed migrationA rebuild as clean static pages, WordPress removedLive business sites that keep changing

We compare all four in detail, with the actual export steps and the eight things a ZIP file doesn't handle, in convert WordPress to static HTML: every method compared. If you already know you want the tooling route, start there and come back here for the redirect work.

Static export vs. managed migration, at a glance

 Plugin export (Simply Static)Managed platform (ShiftPress)
Speed & security gainYesYes
Edit without WordPressNo, re-export neededYes, edit by chat
Keeps your rankingsOnly if you set redirects yourselfYes, 301s handled
Forms, comments, searchYou wire these upSet up for you
Who it suitsTechnical usersNon-technical owners

How to migrate WordPress to a static site: step by step

1. Take stock of your current site

List your pages, posts, images, and any dynamic features (contact forms, search, comments, members area). Note your most important URLs and your top-ranking pages, you'll protect these in step 4.

Two exports are worth taking now, while WordPress is still running: your full URL list (Screaming Frog, or your sitemap) and your top pages by clicks from Google Search Console, last 12 months. That second list is your priority order if anything goes wrong later.

2. Export your content

You can use WordPress's built-in export, a plugin, or have it pulled automatically. The goal is to capture every page's text, images, and structure, including alt text on images, which matters for both accessibility and SEO. The tooling guide walks through each exporter.

3. Rebuild as a static site

Modern static sites are usually built with a generator like Astro or Next.js. These produce clean, pre-rendered HTML that loads in milliseconds. If you're not technical, this is the step where a managed platform does the heavy lifting, you don't see the code, you just approve the result.

4. Protect your rankings with 301 redirects

This is the step that makes or breaks your SEO. Map every old URL to its new location and set up 301 (permanent) redirects. According to Google's own guidance, 301 redirects pass nearly all of a page's authority to the new URL, so your rankings move with you. Keep the redirects live for at least a year. This is the one step worth doing slowly, so it has its own checklist below.

5. Replace plugin-powered features

Because a static site has no PHP, server-side plugins are swapped for lightweight services: a form handler (e.g. Formspree), a comment service (e.g. Giscus), and a static search index. These keep your pages fast while preserving the features visitors actually use.

6. Deploy and verify

Push the site to a static host, Cloudflare Pages, Netlify, or similar, connect your domain, and confirm SSL is active. Then submit a fresh sitemap in Google Search Console so Google learns the new structure quickly.

7. Keep the old site as a safety net

Don't switch off WordPress on day one. Keep it reachable in parallel for a couple of weeks so you can compare pages and roll back instantly if anything looks off. (With ShiftPress your old site stays available for at least 14 days for exactly this reason.)

Want to see this play out on a real site? Read how CSR Tools rebuilt 200+ pages off WordPress and made the site about 7× faster.

The redirect and SEO checklist

Almost every "we migrated and lost our rankings" story is a redirect story. Nothing else on this page is as consequential, so here is the whole job in one place.

Build the redirect map before you deploy

Export a complete list of your live URLs (your XML sitemap plus a crawl with Screaming Frog or Sitebulb catches the orphans), then put it in a two-column sheet: old URL, new URL. Two rules make the difference between a clean move and a messy one:

  • One old URL, one closest-matching new URL. Redirecting a batch of retired pages to the homepage is treated as a soft 404 and passes nothing. If there's genuinely no equivalent, let it 404 or 410 on purpose.
  • No chains. If /a already redirects to /b, and you now move /b to /c, update the first rule to point straight at /c. Chains leak authority and slow crawling.

The URL patterns that quietly change

Even a migration that "keeps the same URLs" tends to move these. Check each one:

Old WordPress URLWhat tends to happenFix
/?p=123Query strings can't exist as static files301 each to its pretty permalink
/about/ vs /aboutHost-dependent; both may resolve, which duplicates the pagePick one, 301 the other, match the canonical tag
/about.htmlCrawler exports add the extension301 .html to the clean path
/category/news/page/2/Paginated archives often aren't exportedExport them, or 301 to page 1
Attachment pagesWordPress generates one per image; they vanish301 to the parent post
/sitemap_index.xmlGenerated by Yoast/Rank Math in PHP, so it disappearsShip a static sitemap.xml and 301 the old path to it
/feed/Usually droppedExport a static RSS file if anyone subscribes

The seven on-page checks before you cut the domain over

  1. Canonical tags point at the new URL, not the staging or preview domain. A canonical left pointing at a preview host will de-index the real page.
  2. No stray noindex. Staging builds are usually set to noindex. Search the whole output for noindex before launch, and check robots.txt isn't still disallowing everything.
  3. Titles and meta descriptions carried over. Yoast and Rank Math store these in the database, not in the page content, so they are the single most commonly lost thing in a migration.
  4. Structured data survived. Organization, LocalBusiness, Article, FAQ and breadcrumb markup were also plugin-generated. Re-add them, and validate with Google's Rich Results Test.
  5. Internal links updated. Links inside your content that point at old absolute URLs will either 404 or keep routing visitors back to the old install. Search the export for your old domain.
  6. Images kept their paths and alt text. Image URLs moving from /wp-content/uploads/โ€ฆ resets your image search rankings unless you redirect them too.
  7. hreflang tags still pair the right language versions, if you run more than one language.

After launch: the first 48 hours, then the first month

  • Day one: submit the new sitemap.xml in Google Search Console and use the URL Inspection tool to request indexing on your five most valuable pages. If your domain didn't change, do not use the Change of Address tool, it's only for domain moves.
  • Days two to seven: watch Search Console's Pages report for a spike in "Not found (404)" and "Redirect error". Every entry is a missing rule in your map. Watch Core Web Vitals too, this is where the speed gain shows up.
  • Weeks two to six: expect some ranking movement while Google recrawls. Compare clicks and impressions to the same period last year, not to last week. If a specific page drops and stays down, check its redirect, its canonical, and whether its content actually made it across intact.
  • For a year: leave every redirect in place. Google keeps revisiting old URLs long after you've forgotten them.

Google's own reference for this is site moves with URL changes in Search Central. If you want the failure modes rather than the checklist, our list of 7 WordPress migration mistakes to avoid is the companion piece, and moving off WordPress without losing rankings covers the strategy side.

One thing static hosting gives you for free: because the content sits in the HTML rather than being assembled by scripts at load time, crawlers and AI answer engines read it more reliably. That's the same property that makes a site quotable in ChatGPT, Perplexity and Google AI Overviews, which we cover in answer engine optimization and making your site agent-ready.

Thinking about making the move?

ShiftPress migrates your WordPress site to clean code and lets you edit it by chat, no developer, no plugins. Get started in minutes.

Migrate my site โ†—

How long does it take, and will rankings drop?

A small content site can be migrated in a day or two. After you go live, Google needs a few weeks to recrawl and reindex everything; you may see small ranking fluctuations during that window before things settle. Most ranking drops after a move trace back to a handful of avoidable migration mistakes; with correct 301 redirects in place, the long-term effect on rankings is neutral to positive, and the speed boost often helps.

Will I still be able to update the site myself?

With a plain export, no, you're tied back to WordPress for every edit. With a managed platform like ShiftPress, yes: you describe the change in your own words ("update the deadline in all articles to June 30"), see a word-for-word preview of every affected page, approve it, and it goes live. If something's wrong, one click rolls it back. That's the whole point of moving off WordPress, to stop depending on it and on a developer.

Frequently asked questions

Will I lose my Google rankings if I migrate?
Not if you keep your URLs the same and set up 301 redirects for any that change. A 301 passes almost all of a page's SEO authority to its new address, so rankings transfer. Submit a fresh sitemap in Search Console and keep redirects in place for at least a year.
Can I still edit a static site after migrating?
It depends on the method. Plugin exporters create a frozen snapshot you can only change by going back into WordPress. A managed platform such as ShiftPress keeps the site editable, you describe changes in plain language, preview them, and publish, with no WordPress underneath.
How long does the migration take?
A small content site can be migrated in a day or two. Google typically takes a few weeks to fully recrawl and reindex the new pages, during which rankings may fluctuate slightly before settling.
What happens to my forms and comments?
Static sites have no PHP, so server-side form plugins are replaced by a form service (e.g. Formspree) or a built-in handler, and comments can use a service like Giscus or Disqus. A managed migration sets these up for you so nothing breaks.
Which URLs need a 301 redirect?
Any URL whose address changes, plus several that change without you noticing: query-string permalinks like /?p=123, paginated archives, attachment pages, feed URLs, the old sitemap_index.xml, and every page that gained or lost a trailing slash or a .html extension during the export. Redirect each one to its single closest equivalent, never in bulk to the homepage, and avoid chains where one redirect points at another.
How much does the migration cost?
A do-it-yourself export is free apart from your time: Simply Static has a free tier and static hosting on Cloudflare Pages or Netlify starts at nothing. The saving comes afterwards, because you stop paying for PHP hosting, premium plugin licences, a security or backup subscription, and developer hours for small changes. A managed migration is a one-time fee plus a subscription, and usually pays back against the bills it replaces, see what a website really costs to maintain.
Is a static site better for SEO and AI search?
Usually yes, for two reasons. Static pages load faster, which helps Core Web Vitals, a confirmed Google ranking signal. And the content sits in the HTML rather than being assembled by scripts at load time, so crawlers and AI answer engines like ChatGPT, Perplexity and Google AI Overviews can read and quote it reliably. Static hosting doesn't create rankings on its own, but it removes the technical drag holding many WordPress sites back.

The bottom line

Migrating WordPress to a static site gives you a faster, safer, cheaper website, and with proper 301 redirects, your rankings come along for the ride. The only real decision is how you migrate: a frozen export that keeps you tied to WordPress, or a managed platform that frees you from it entirely while keeping your site easy to edit. If you want the second option without touching a line of code, that's exactly what ShiftPress is built for.

The rest of the migration series

Convert WordPress to static HTML: every method compared 7 WordPress migration mistakes to avoid Move off WordPress without losing rankings Moving WordPress to a new host Editing WordPress with AI, or moving on?

Explore ShiftPress

Move off WordPress without losing anything Get found: SEO & GEO, on Google and in AI