Topics

On this page

Last updated on Apr 30, 2025

Umbraco to WordPress: Pre-migration

The pre-migration phase is where a successful transition begins. It’s about more than just checklists, it’s the foundation for a stable, accurate, and disruption-free migration from Umbraco to WordPress.

This stage is focused on three key areas: technical setup, content preparation, and SEO continuity. Getting these right ensures your migration process runs smoothly and reduces the likelihood of data loss, misalignment, or performance issues.

Set up the right technical environment

A reliable technical setup is what enables realistic testing and smooth execution, without disrupting your live Umbraco website.

Development environment

Start by creating a dedicated development environment that mirrors your eventual production setup. This isolated environment allows your team to build and test themes, plugins, content structure, and integrations without interfering with ongoing site operations.

To ensure consistency across teams and machines:

This environment becomes your sandbox for validating every piece before go-live.

Backup procedures

No migration should proceed without a full backup of your existing Umbraco instance. This should include:

While Umbraco supports automated backups, also take manual backups using FTP and SQL exports for redundancy. Store backups securely on cloud storage or external drives to ensure fast restoration in case of rollback.

Testing framework

As development progresses, set up a comprehensive testing framework that covers:

Content preparation

Maintain your content’s integrity and structure throughout the migration.

Content mapping

Based on a detailed audit of the Umbraco content tree, create a mapping sheet to align it with WordPress structure:

Below is a table mapping common elements from Umbraco to WordPress: 

Content TypeUmbracoWordPressNotes
PagesContent nodes with custom fields.WordPress Pages with custom fields.Ensure custom fields are mapped correctly.
PostsBlog posts managed through Umbraco.WordPress Posts managed through the dashboard.Ensure blog posts are migrated with metadata.
MediaImages, videos, and documents managed through Umbraco.Media managed through WordPress Media Library.Ensure media URLs are updated correctly.
Custom post typesCustom document types in Umbraco.Custom post types in WordPress.Need to recreate custom post types in WordPress.
TaxonomiesCategories and tags managed through Umbraco.Categories and tags managed through WordPress.Ensure taxonomies are mapped correctly.

Different sites require different methods, and the choice depends on factors such as site size, customizations, and timelines. Common strategies include:

We typically use a hybrid migration approach, combining scripts and tools for structure, with manual QA for accuracy.

Export content from Umbraco

Export content using Umbraco’s built-in features (e.g., Umbraco Deploy or uSync) or third-party tools like SQL Server Management Studio, to ensure all the tables are captured. 

Exporting Umbraco Content
Umbraco usync

Here’s a simplified example of what an exported Umbraco page (document type “BlogPost”) might look like in XML format: 


<node id="1234" parentID="5678" nodeTypeAlias="BlogPost" level="2" path="-1,5678,1234" sortOrder="1" uniqueID="guid:456789ab-cdef-1234-abcd-ef1234567890">
  <name>My First Blog Post</name>
  <properties>
    <pageTitle>My First Blog Post</pageTitle>
    <bodyText><![CDATA[<p>This is the body text of my first blog post.</p>]]></bodyText>
    <publishDate>2023-11-22T12:34:56Z</publishDate>
    <author>John Doe</author>
    <categories>Technology, Programming</categories>
  </properties>
</node>

Explanation of the XML Structure:

Import to WordPress

Import content using WordPress import tools:

An example of a script to convert Umbraco nodes to WordPress posts and properties to custom fields or taxonomies: 

async function mapUmbracoXMLToWordPress(xmlData) {
  // Parse the XML data
  const parser = new DOMParser();
  const xmlDoc = parser.parseFromString(xmlData, "text/xml");

  // Replace with your WordPress REST API URL and authentication details
  const WP_API_URL = "https://your-wordpress-site.com/wp-json/wp/v2/";
  const WP_USERNAME = "your_username";
  const WP_PASSWORD = "your_password";

  // Function to fetch WordPress categories
  async function fetchWordPressCategories(categoryNames) {
    // ... same as in the previous script
  }

  // Iterate through Umbraco nodes
  const nodes = xmlDoc.getElementsByTagName("node");
  for (const node of nodes) {
    const wpPostData = {
      title: node.getElementsByTagName("name")[0].textContent,
      content: node.getElementsByTagName("bodyText")[0].textContent,
      status: 'publish', // Adjust status as needed
      categories: [],
    };

    // Map categories
    const categoryNames = node.getElementsByTagName("categories")[0].textContent.split(',');
    const wpCategories = await fetchWordPressCategories(categoryNames);
    wpPostData.categories = wpCategories.map(category => category.id);

    // Map other properties as needed (custom fields, etc.)

    // Send the post data to WordPress REST API
    // ... same as in the previous script
  }
}

// Assuming you have Umbraco XML data
const xmlData = `

`;

mapUmbracoXMLToWordPress(xmlData);

Data cleanup

Before migrating, it’s important to evaluate your existing content with a critical eye. Start by identifying outdated, redundant, or irrelevant content that no longer serves your audience or business goals. Removing this early helps reduce clutter and keeps your new WordPress instance lean and purposeful.

Next, review the formatting of the remaining content. Ensure consistency in heading levels, spacing, and internal linking so everything aligns with modern web standards and works well within WordPress’s block-based editing environment.

It’s also useful to tag high-performing or strategically important content, like landing pages, cornerstone blog posts, or SEO-critical articles, for early migration and thorough validation post-launch. These pieces often anchor traffic and should be prioritized accordingly.

Asset organization

Migrating media assets requires more than just bulk copying files over. Begin with a full audit of your Umbraco media library to sort assets by type, usage, and importance. This ensures a smooth handoff to WordPress and reduces post-migration cleanup.

Organize and optimize your media in the following ways:

Once optimized, upload assets into the WordPress Media Library and ensure metadata, such as alt text, captions, and descriptions, is preserved or enhanced. This not only improves SEO but also supports accessibility standards.

SEO considerations

Preserving your SEO equity during migration is non-negotiable. A thoughtful pre-migration SEO strategy helps retain rankings, avoid crawl issues, and ensure a smooth transition for search engines and users alike.

Set up URL redirects

One of the most important steps is mapping old URLs to new ones. Create a URL mapping sheet that aligns each Umbraco URL with its WordPress counterpart. This document will guide your redirect strategy.

Transfer metadata

Umbraco stores important on-page SEO data like meta titles, descriptions, and alt tags that should move with your content.

Preserve canonical tags

If your Umbraco site uses canonical URLs to manage duplicate content, make sure they’re preserved in the WordPress setup.

Choose an SEO plugin

Select a reliable SEO plugin to centralize SEO configuration and management. Look for features like:

Recommended tools include Yoast SEO and Rank Math, both enterprise-ready and widely supported.

Reconnect analytics and monitoring tools

After migration, re-enable performance tracking and crawling diagnostics.

Final note

Pre-migration SEO planning is what ensures your WordPress site launches without sacrificing visibility. When done right, it prevents ranking drops, maintains traffic, and gives your new platform a strong foundation from day one.

In the next section, we’ll walk through the actual migration process, covering tools, workflows, and quality checks.


Credits

Authored by Abhijit Abhijit Abhijit Prabhudan Technical Writer | Edited by Shreya Shreya Shreya Agarwal Growth Engineer