Migrating from WordPress to Strapi

A plan for moving a WordPress site to headless Strapi, covering what maps cleanly, which documented paths extract content, and where the work and risk sit.

On this page

How migrating from WordPress to Strapi changes your content model

Moving a WordPress site to Strapi is a content model and URL project as much as a data copy. The effort depends on how many custom post types, custom fields, plugin-managed data structures and media files the site holds, and on how much of the existing editorial structure the new front end or other channels need to reuse. WordPress content is not imported as-is. WordPress stores posts, pages, custom post types, taxonomy terms and field values in a shared model where most meaning lives in the field names, plugin conventions and the templates that render them. Strapi expects explicit content types, components and relations, so each WordPress structure has to be rebuilt as a deliberate Strapi design before any record moves.

Start by inventorying what the site actually uses. List every post type, taxonomy, custom field group and plugin that stores content, and note which ones editors use daily and which are leftovers. For each one, decide whether it becomes a collection type, a single type, a component inside another type, or a relation to another type. A repeated block of fields, such as an author bio or a set of call-to-action links, usually suits a component. A category system that front-end routes depend on usually needs a relation with a stable slug field. Confirm this mapping with the editors and the front-end team before extraction, because every later change to a content type in production carries its own migration work.

Treat the content model as the input to the URL plan, not a side task. WordPress URLs often embed dates, category bases or post type slugs, and those patterns will not survive unless you decide the new route structure on purpose. Record the current permalink structure, export a list of indexed URLs, and map each old path to a new Strapi route or to a redirect target. Ask your SEO owner which paths carry traffic and links, and plan redirects for them before cutover. Keep the mapping file under version control, since it becomes the reference for testing, for redirect rules and for any later audit of what changed.

What maps cleanly from WordPress and what needs redesign

This table compares common WordPress data and presentation structures with their closest Strapi equivalents. Read the middle column as the direct mapping and the last column as the decision you need to make before extraction starts, because items marked for redesign rarely move as they are.

WordPress itemStrapi equivalentMapping status
Posts and pagesCollection types with title, slug, body and status fieldsMaps cleanly once you define one type per editorial format
Categories and tagsTaxonomy content type with relations to postsMaps cleanly, but decide whether tags stay free text or become entries
Custom post typesSeparate collection type per post typeMaps cleanly if the post type has a stable schema
ACF or custom meta fieldsTyped fields, components or relationsNeeds mapping review for repeaters, flexible layouts and conditional logic
Users and authorsAuthor content type for public bylines, separate from admin usersNeeds a decision: admin accounts and site authors are different populations
Media libraryMedia files with metadata, moved to your chosen upload storageMaps cleanly for files, but alt text, captions and unused files need a cleanup pass
MenusNavigation content type or a single-type structureNeeds redesign: menu locations and nesting are theme-defined, not stored content
ShortcodesDedicated components or rendered content in the front endNeeds a decision for each shortcode: convert, replace or drop
Page builder blocksDynamic zones with components per block typeNeeds redesign: builder markup rarely maps field by field
Plugin-owned tablesCustom content types or external services, case by caseNeeds a decision: confirm what each plugin stores and whether you still need it

Documented ways to extract WordPress content for Strapi

WordPress offers two documented routes for pulling content out: the REST API, which returns live records one endpoint at a time, and the WXR export file, which packages a site snapshot in one pass. Each route returns different data and omits different things, so the choice shapes how you map fields and what you must rebuild by hand before Strapi's import tooling and Document Service API load the result.

WordPress REST API for posts and pages

The core REST API exposes posts, pages and custom post types at endpoints under the wp/v2 namespace, returning titles, content, excerpts, slugs, dates and status fields as JSON. Results are paginated, so large sites need page-by-page collection with stable ordering. Confirm which post types are exposed with show_in_rest set to true, because types registered without it do not appear. Use the status field to decide whether drafts and scheduled posts are included, since private content needs authenticated requests.

REST API taxonomies, users and media

Categories, tags and custom taxonomies are returned from their own endpoints, and posts reference them by numeric ID rather than by name. Users appear with display fields that may be limited by site settings, so author data needs a check against what your editors expect to see. Media items come back as attachment records with source URLs and metadata, but the files themselves must be downloaded separately. Map taxonomy IDs to names in a lookup pass before you create relations in Strapi.

WXR export file as a bulk source

The WordPress eXtended RSS (WXR) export from the Tools menu writes a single XML file containing posts, pages, comments, categories, tags, authors and attachment references for the selected content. It is a practical snapshot for bulk work because it avoids rate limits and pagination, and it preserves relationships in one place. Parse it with a script that writes intermediate JSON, and keep the export file as an immutable input for repeat test runs.

What each path omits

Neither path reliably carries plugin-managed data such as custom database tables, page builder layouts stored in private meta, or settings held in options. Custom meta is included only when it is registered for REST exposure or present in the WXR content, so fields your theme reads directly may be missing. Private and password-protected content, revisions and some media variants also need explicit handling. Compare a sample of records from each path against the admin screen before you trust either source.

Loading the result into Strapi

Strapi's import and transfer tooling and the Document Service API are the components that write extracted content into your content types, so the intermediate format must match the schema you have designed. Plan one load script per content type, create entries through the Document Service, and attach media and relations after the base records exist. Confirm the current import and transfer commands against the Strapi version you deploy, since tooling changes between releases.

Strapi migration docs

Confirm behavior on your own site

REST endpoint behavior and WXR output depend on your WordPress version, active plugins, custom post type registration and hosting security rules, so published descriptions are a starting point only. Run both extraction paths against a staging copy, record the field counts per post type, and compare them with the database. Ask your plugin vendors which fields they expose and where they store data. Treat this comparison as the acceptance test for the extraction stage.

Choosing between REST extraction and WXR export

A site with standard posts, pages, categories, tags, featured images and little custom field data usually fits a single extraction. The WXR export is the simplest path because it packages posts, pages, taxonomies, authors and attachment references in one file that can be reviewed offline and loaded into a staging Strapi project. A REST extraction adds value mainly when the team wants a live source for a pilot or for repeated runs.

  • One-time export: Export the WXR file from the WordPress admin, keep an archived copy, and load it into a staging Strapi instance for review.
  • Simple mapping: Map posts to one article type, pages to a page type, and categories and tags to relations or enumerations, with no component design needed.
  • Re-runs: For a short build, plan one full load and repeat it into an emptied staging project after each export, unless editors publish during the review window.
  • Media: The export references attachment URLs, so confirm that the files are fetched, stored and linked to the right entries.

After load, check record counts by type, slugs, publication dates, author attribution and a sample of rendered pages against the live site.

Keeping URLs, media and redirects intact

Headless Strapi does not serve WordPress permalinks, so every old URL needs a planned destination before cutover. Strapi returns content through its API, and the front end or gateway that renders pages decides which paths exist. Build a URL inventory from the WordPress source first: export or query every published post, page, custom post type archive, taxonomy term page, attachment page and pagination path, and record the full path, the slug, the post type and the status. Compare that list with the paths your new front end will generate. Anything that will not have a matching route needs either a mapped redirect or a deliberate decision to retire it, and the decision belongs to the content owner, not the migration engineer.

Media moves as a separate workstream. WordPress stores uploads under dated directories with size variants (for example, a thumbnail and a large copy of the same image), and the WXR export or REST API references them by URL. Decide which variants Strapi should keep, then transfer the original files to the upload provider you have chosen and map each file to a Strapi media record so that the stored name, alternative text and caption survive. Rich text is the most common failure point: image tags inside post bodies still point at WordPress hosts or old upload paths. Rewrite those references to the new media URLs during conversion, and check a sample of posts that use galleries, shortcodes or embedded files, because those often do not appear as plain image tags. Confirm the upload provider, the public media domain and the front-end rendering of rich text with the team building them, since those choices sit outside this page.

How the WordPress to Strapi migration runs in sequence

The sequence moves WordPress content into a Strapi content model in controlled stages, so each mapping decision is tested on real content before the full load and before WordPress stops serving readers. Each phase produces a written output that the next phase depends on.

  1. Inventory content types, plugins and URLs

    The team lists every WordPress post type, taxonomy, custom field group, plugin that stores or renders content, media library location and public URL pattern. A DeployOpen engineer and your editors review the list together, and the inventory is signed off when every public URL pattern and every field has a named destination or an explicit decision to retire it. Confirm which WordPress version and hosting setup you run, since these affect which extraction routes are available.

  2. Build and review the Strapi content model

    Engineers translate the inventory into Strapi content types, components and relations, and editors review them in a running Strapi instance with sample entries. This is the point to settle slugs, required fields, rich text handling and taxonomy design. Before build starts, confirm the PostgreSQL, MySQL, MariaDB or SQLite version and the Active or Maintenance LTS Node.js version your Strapi 5 release supports, because the database and runtime choices affect the model work that follows. The step closes when editors have approved the model in writing.

  3. Run a pilot import of one content type

    Choose one representative content type, such as news posts with images and categories, and load it through the WordPress REST API or a WXR export into a non-production Strapi instance. Check titles, dates, authors, taxonomy assignments, embedded images and internal links against the source. The pilot produces a list of mapping defects and rule changes, which are fixed before the full run. The step closes when the pilot output passes an agreed sample review.

  4. Extract and load the full content set

    The team runs the full extraction and load with the corrected mapping, moving media files, taxonomies and relations in dependency order so that references resolve. Counts are compared between WordPress and Strapi for each content type, and failed records are logged and resolved rather than silently dropped. The output is a reconciliation report that lists every content type, its source count, its loaded count and any exceptions with a decision for each.

  5. Build the redirect map and test the parallel run

    Engineers build a redirect map from the old URL inventory to the new Strapi front-end routes and load it into the reverse proxy or front-end layer. WordPress and Strapi then both serve content for a period, while editors make changes in Strapi and the team checks that redirects, canonical links, search indexing and feeds behave as expected. The step closes when a defined list of test URLs and editorial tasks passes on both systems, and open defects have owners.

  6. Cut over public traffic to Strapi

    The team schedules the cutover, freezes content changes in WordPress, runs a final incremental load, switches DNS or routing to the new front end, and confirms that redirects, media paths and forms work from outside the network. A rollback path is documented and rehearsed before the switch. The step closes with a signed cutover checklist and a monitored first day of traffic.

  7. Retain WordPress, then decommission it

    WordPress stays available in read-only form for a retention period agreed with your compliance and records owners, so that content questions and rollback requests can be answered. After that period, the team exports a final archive, removes database access and public endpoints, and records what was retired and where the archive is stored. The step closes with a decommissioning record approved by the system owner.

How data flows from WordPress into Strapi during the parallel run

Content starts in WordPress, either through the REST API or a WXR export file. A transform step maps post types, taxonomies and custom fields to Strapi content types, then loads entries through import tooling and the Document Service. Media files move to the upload provider, and a redirect map at the gateway serves the public front end. During the parallel run, WordPress stays live and the sync repeats, so you should check record counts, relations and URLs in both systems before cutover.

Data path during the parallel run, with WordPress still live until cutover.

What drives the cost and duration of a WordPress migration

This table lists the factors that change how much work a WordPress to Strapi move takes, whether each factor is paid once or keeps costing money, and what to ask a partner to put in a written quote. Read each row as a question to answer about your own site before you compare offers. The main takeaway is that most cost sits in mapping and cleanup decisions made before any code is written, not in the export itself.

DriverWhy it changes cost or effortOne-time or recurring, and what to ask for in a quote
Custom post types and ACF field groupsEach custom post type and field group needs a content type, components or relations, and a mapping rule. Nested repeaters and flexible content add mapping branches.One-time. Ask for a written content model map listing each post type and field group, with the Strapi target for each.
Plugin-owned dataData stored by plugins such as forms, LMS, SEO or e-commerce tables may need custom extraction or may be dropped by mistake.One-time. Ask which plugin tables are in scope and which are retired, and who decides.
Shortcodes and page builder contentBuilder layouts often store structure in serialized markup or shortcodes. Converting them to structured blocks or rich text is manual work for many pages.One-time. Ask how many distinct shortcodes and builder blocks exist and how each will be converted or flagged for editors.
Media volume and file structureLarge libraries, duplicate sizes, and inconsistent folder paths increase transfer time, storage needs and the risk of broken image references.One-time for transfer. Storage in the new upload provider recurs. Ask for a media inventory and the planned upload provider.
Number of languagesEach language may need its own locale content, translated fields and a mapping for language plugin relations.One-time for mapping and testing, with ongoing translation effort. Ask whether locales are modeled in Strapi and how they are verified.
URL count and redirect complexityEvery indexable URL needs a stable target or a redirect. Custom permalinks, date archives and taxonomy pages multiply the rule count.One-time to build and test. Redirect rules may need upkeep after launch. Ask for a URL inventory and the redirect test method.
Editorial roles and workflowsMapping WordPress roles to Strapi admin roles, and deciding which review steps move over, changes permission design and training.One-time design. Admin seats and plan features, such as review workflows, recur. Ask which features the chosen plan includes.
Integrations with the new front endEach consumer of the content API, such as a front-end framework, search or forms, needs its own field contract and test coverage.One-time build, with ongoing maintenance when content models change. Ask for the list of consumers and who owns each contract.

What usually goes wrong in WordPress to Strapi projects

WordPress sites accumulate years of URLs, editor habits and plugin output that a headless build does not carry over by default. The failures below tend to surface late, after content is already mapped and editors have started reviewing. Each card names the risk and the check to run before cutover.

Broken URLs and lost rankings

WordPress serves content at permalink paths, date-based archives, category bases and attachment pages that search engines and inbound links rely on. A Strapi front end will not answer those paths unless someone rebuilds them. Export the full URL inventory from the WordPress sitemap or server logs, map every old path to a new one, and write redirects before DNS changes. Test a sample of high-traffic URLs after launch.

Shortcodes and builder markup in content

Page builders and shortcodes such as [gallery] store layout inside post content as markup or bracketed tags. Copied into a rich text field, that markup appears as raw text or broken HTML on the new front end. Audit a sample of posts from each builder and plugin in use, decide which blocks become structured components, and strip or convert the rest during extraction rather than cleaning them by hand later.

Media references that break

WordPress stores uploads under dated folders and embeds absolute URLs to the old domain inside post bodies, custom fields and widgets. Moving files without rewriting those references leaves images missing even when the media library looks complete. Plan the media transfer as its own step, keep original filenames where possible, rewrite references to the new asset locations, and check image counts per post after each test import.

Authors and roles mapped incorrectly

WordPress roles such as Administrator, Editor, Author and Contributor do not map one to one onto Strapi admin roles or end-user permissions. Post authorship also tends to be stored as a user ID that does not match a Strapi account. Agree the role model with the editorial owner before import, map each WordPress author to a named Strapi user or a placeholder, and confirm who can publish after cutover.

Content changed during the build

Editors keep publishing in WordPress for weeks or months while the Strapi build runs, so a single import snapshot goes stale quickly. Without a delta plan, changes made after the snapshot are lost or duplicated at cutover. Decide early whether WordPress will be frozen for a window or whether changes since a timestamp will be re-extracted, and rehearse that second run against a copy of the data.

Strapi version and Node.js requirements found late

Strapi 5 supports specific database versions and runs only on Active or Maintenance LTS Node.js versions, and it does not support MongoDB. Hosting images or server baselines chosen before the build can fail these requirements. Check the installation requirements against the target database and runtime at project start, and pin the Strapi 5 minor version used for the build so the team is not reconciling changes at cutover.

Installation requirements

Questions buyers ask before moving WordPress content to Strapi

What does a WordPress to Strapi migration cost and what drives the price?

The price follows from the written scope, and no fixed figure applies to every site. The main drivers are the number of post types and custom fields to map, how many taxonomies and relations exist, the volume and state of media, how messy the existing content is, and how many environments and integrations need work. Costs fall into two groups. One-time costs cover analysis, the content model, extraction scripts, import runs, testing and cutover. Recurring costs cover hosting Strapi, its database and storage, and any Strapi plan you choose. The Community Edition is free to use, while the Growth plan is listed at 45 US dollars per month including 3 users, according to Strapi's self-hosted pricing page. Ask any partner for a quote that separates these items and states what is excluded.

How long does a WordPress to Strapi migration take?

Duration depends on the size and complexity of the site and on how quickly decisions get made. A small brochure site with a few post types moves faster than a publication with years of archives, custom fields, multilingual content and plugin-generated data. The phases usually run in order: content inventory, sign-off on the Strapi content model, a test import, editorial review, a second import, front-end switchover and redirect checks. Delays most often come from waiting on content owners to approve the model or from unclear ownership of DNS and hosting. Ask for a timeline tied to named milestones in the written scope rather than a single headline number.

What must our internal team provide during the migration?

Your team provides the decisions and the access, and the engagement cannot run without them. Expect to supply:

  • Content owners who can confirm which post types, pages, and fields stay, merge, or retire
  • Written sign-off on the Strapi content model before the import is built
  • Access to the WordPress site, its database or REST API, and its media library
  • DNS, hosting, and certificate access for the new Strapi and front-end environments
  • Someone who can review imported content and approve the cutover

Also confirm who owns the editorial workflow after launch, because editors will work in a different admin panel from the one they used in WordPress.

Can our own team migrate WordPress to Strapi without a partner?

Yes, a capable internal team can do this, provided it has engineers who know Strapi content types, the WordPress REST API or WXR export, and how to test redirects and media. The work is less about the first import and more about repeating it safely: mapping every field, handling edge cases such as shortcodes and embedded media, and rehearsing cutover. Consider whether your team has the time and the skills to build and maintain the extraction, to run several test imports, and to verify URLs after launch. If those gaps exist, a fixed-scope engagement can cover them. DeployOpen plans, builds and documents this kind of work inside your own infrastructure.

Does WordPress have to be shut down during the migration?

No, WordPress does not have to be shut down while the content is being built and tested, and many teams keep it running until cutover. Content is typically extracted and imported in passes. A final pass captures recent edits just before switchover, so your plan should decide whether editors freeze publishing for a short window or whether a final delta import picks up later changes. Confirm this rule early, because it affects editorial process, the number of import runs and how you verify that nothing was lost between the last pass and the go-live.

How are URLs and redirects handled when moving from WordPress to Strapi?

The goal is to keep every indexed and linked URL working or redirected to its new equivalent. Start by exporting the current URL list from WordPress, including permalinks, categories, tags, attachments, and any paginated archives. Then decide how each path maps to a Strapi content entry and to the front end that renders it. Redirect rules are usually written at the web server, CDN or front-end layer, and they should be tested against the full list before cutover. Watch for media URLs and old feeds, which often break silently. Confirm with your SEO and web teams which URL patterns must stay identical and which can change with a documented 301 redirect.

Which parts of the WordPress site carry the most migration risk?

Risk concentrates in content that WordPress stores in plugin-specific ways. Page builder markup, shortcodes, custom fields created by plugins, and serialized data can all require conversion before they become clean Strapi fields. Media is another risk: files, sizes, and alt text must be moved and referenced correctly, and the upload storage must match where Strapi will serve them. Users and authors need a decision too, because WordPress accounts do not carry over into Strapi roles automatically. Ask for a content audit before the build, and review a sample of complex posts after each test import.

Does the Strapi license allow us to run the migrated site on our own infrastructure?

The Community Edition of Strapi is released under the MIT Expat license, and it can be self-hosted, according to the Strapi LICENSE file on GitHub. Code under ee directories is the Enterprise Edition and falls under a separate Strapi license, so confirm which features you need before you choose a plan. Features such as SSO for administrators, audit logs and review workflows depend on the plan. Have your legal or procurement team read the license file and the pricing page before the content model is locked, since plan choice affects editorial workflow.

Where Strapi will run and what the license means for the move

The license question comes first because it shapes which editorial features the new site can use. The Strapi Community Edition is released under the MIT Expat license, and the code under the ee directories is the Enterprise Edition under a separate Strapi license. Check the license file in the repository before you commit to a build. The features that matter most for a WordPress replacement, such as audit logs and review workflows, sit in the paid tiers, while content history and releases begin at the Growth plan. Map each editorial behavior your current WordPress roles depend on, such as approval before publish or a record of who changed a page, to a specific plan before you design the content model around it.

For regulated buyers, self-hosting inside the organization's own cloud account, data center or private network is usually the path of least friction with security and compliance reviewers. It keeps WordPress exports, author records and uploaded media under the same controls as the rest of the estate. Strapi Cloud is a valid option, but its plans carry their own uptime terms, storage and bandwidth allowances, and data location questions. Confirm the current figures on the official self-hosted and Cloud pricing pages, and compare them against the feature list you wrote down, not against the headline tier. Ask whether SSO for administrators is an add-on or included at the tier you select, since that changes the quote more than the base license does.

How DeployOpen scopes and delivers the WordPress to Strapi move

DeployOpen plans, builds, documents and supports self-hosted open-source platforms inside your own infrastructure, so the WordPress to Strapi move is run as a written, fixed-scope engagement. The work starts with an agreed inventory of your content, media and URLs, and ends with a handover your team can run without us.

How we scope

  • We inventory the WordPress post types, taxonomies, custom fields and plugin-generated data that must move into Strapi.
  • We agree which content types, components and relations map to each source structure, with the mapping written down before any build starts.
  • The written scope states the URL and redirect rules, media handling, environments and cutover steps that are in and out of the engagement.

How we build

  • We build the Strapi content types and the extraction scripts, using the REST API or WXR export as the agreed source.
  • We import a staged copy of the content, then check record counts, relations, media references and rendered URLs against the source.
  • We test redirects from the old WordPress paths and document any content that needed manual conversion, so reviewers know what changed.

How we hand over

  • You receive the mapping document, the migration scripts, the content model and a run log from each test import.
  • We document the cutover runbook, including the database backup taken before import and the steps to repeat the import if needed.
  • Knowledge transfer covers how editors use the new content types and how your engineers rerun or extend the import.

How we support

  • Ongoing support, upgrades and continuous testing are available as a retainer after cutover.
  • A retainer can cover Strapi version upgrades, plugin updates and fixes to redirects or content mappings found after launch.
  • Before any engagement, we ask you to confirm your hosting location, database choice and WordPress version so the quote reflects your environment.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.