How to preserve Rank Math SEO during a WordPress migration
In-depth guide to carrying Rank Math titles, descriptions, schema, redirects and settings across a WordPress rebuild — including migration from Yoast and bulk…
verifiedReviewed by Tommy Smith,Content Director

Rank Math stores SEO in post meta that must be read and rewritten on rebuild. Migrate title, description, focus keyword and canonical per page, then validate JSON-LD with Rich Results Test before launch.
Rank Math has become the default SEO plugin on a lot of agency builds — it's fast, the schema UI is capable, and the redirection module means one fewer plugin on the stack. On a rebuild, Rank Math's post meta (rank_math_title, rank_math_description, rank_math_focus_keyword, and the schema graph) is as critical as the page content itself. Lose it and you launch with auto-generated titles on the pages that used to drive your traffic.
What Rank Math stores per page
- arrow_rightSEO title and meta description (rank_math_title, rank_math_description).
- arrow_rightFocus keyword and content score metadata.
- arrow_rightCanonical URL override (rank_math_canonical_url) where set.
- arrow_rightRobots meta: noindex, nofollow, noarchive flags.
- arrow_rightSchema graph: FAQ, HowTo, Product, Article — stored as rank_math_schema_* meta or generated from templates.
- arrow_rightSocial metadata: Facebook and Twitter title/description overrides.
- arrow_rightPrimary category and breadcrumb settings for posts.
Global Rank Math settings to recreate
Per-page meta is half the job. Rank Math's global configuration shapes every URL:
- 1Title & meta templates for post types and archives — copy these manually or export Rank Math settings if the plugin version supports it.
- 2Schema defaults: Organization, WebSite, LocalBusiness — rebuild on the new site before launch.
- 3Sitemap settings: include/exclude post types, image sitemap, hreflang if used.
- 4Redirection module rules — export and import; a rebuild without these is a 404 waiting to happen.
- 5404 monitor baseline: clear after launch and watch fresh.
- 6Analytics/Search Console connection: reconnect to the new property if domain changed.
Migrating from Yoast to Rank Math on a rebuild
Many rebuilds switch plugins at the same time. Rank Math ships a Yoast import tool (Status & Tools → Import & Export → Import from Yoast SEO). Run it after content is in place on the new site. It maps _yoast_wpseo_* meta to Rank Math equivalents for posts that kept the same slugs and post IDs.
Rank Math to Rank Math on a new install
When both old and new sites use Rank Math but the install is fresh, you have three options:
- 1Migration bundle: content migration that writes rank_math_* meta alongside ACF block fields — titles and descriptions land on the correct new post automatically.
- 2Database meta export: SQL export of postmeta for rank_math_ keys, joined by post slug. Works for developers; breaks if slugs changed without a mapping table.
- 3Manual copy on high-value pages: viable for under 15 URLs; doesn't scale.
Schema migration deserves its own pass
Rank Math's schema builder attaches graph pieces per page or via templates. After migration, run Google's Rich Results Test on: homepage (Organization), a blog post (Article), a FAQ page (FAQPage), and any product/service pages. Compare JSON-LD output to the old site. Schema that lived in theme files rather than Rank Math needs to be rebuilt in the new theme — the plugin won't know about it.
Verification workflow on staging
- 1Crawl staging with Screaming Frog; export Page Titles and Meta Descriptions columns.
- 2Crawl or export the same URLs from the old site; diff the two spreadsheets on slug.
- 3Check canonical tags in view-source on your top 20 pages.
- 4Confirm rank_math_robots meta on pages that should be noindex (thank-you, internal search).
- 5Import redirection CSV; test every old URL that changed path.
- 6Submit staging sitemap to a test Search Console property if you have one — optional but catches config errors early.
Rank Math and Yoast preservation follow the same principle: metadata is data, not presentation. See also Yoast preservation, redirect maps, and the full SEO rebuild checklist. AIRA migrates titles, descriptions and canonicals into Rank Math as part of the import bundle.
Rank Math vs SEOPress on rebuilds
Agencies switching from Rank Math to SEOPress need scripted meta key migration — no one-click importer like Yoast. Export rank_math_* keys, transform to _seopress_* equivalents, batch update on staging. Budget a half-day for plugin switches on sites with ninety plus URLs.
WooCommerce and Rank Math product schema
Rank Math and WooCommerce both can output Product schema — disable duplicates in Rank Math settings after WooCommerce rebuild. Product title templates differ from page templates; verify shop archive and top SKUs in Rich Results Test post-migration.
Post-launch Rank Math monitoring
Week one after launch: check Search Console for sudden noindex pages (Rank Math robots meta import errors). Week two: compare average position on top queries. Export Rank Math redirect rules as backup — clients add manual rules in admin that never sync back to your repo.
Worked example: Rank Math on a services rebuild
A B2B site with sixty pages and custom FAQ schema on eight service pages: WXR import with rank_math_* meta, verify eight FAQ graphs match visible accordion content after ACF migration, import one hundred twelve redirects from spreadsheet, reconnect Search Console on cutover. SEO pass: one focused dev-day — not optional on a site where organic leads are thirty percent of pipeline.
Rank Math modules worth auditing before launch
Rank Math bundles features beyond title tags — Analytics integration, 404 monitor, Local SEO, Image SEO, and Link Counter each store configuration that does not migrate with post content. Walk through Rank Math Dashboard modules on the old site and recreate active modules on the new install. Disable modules you do not use — redundant Link Counter or redundant schema types slow admin and confuse editors.
- arrow_rightAnalytics — reconnect Google Search Console and Analytics properties after domain cutover.
- arrow_right404 Monitor — export outstanding 404s from old site; clear monitor on new site before launch baseline.
- arrow_rightLocal SEO — multiple locations, opening hours, and map meta need manual re-entry if not in post meta.
- arrow_rightImage SEO — alt title templates apply on new uploads; existing migrated images keep alt from crawl.
- arrow_rightInstant Indexing — API keys are site-specific; regenerate if domain changes.
Rank Math Local SEO and multi-location sites
Rank Math Pro Local SEO stores location data separately from page content — address, geo coordinates, opening hours, and LocalBusiness schema graph. A page crawl migrates visible NAP copy into ACF blocks but not the Local SEO module configuration. Export location settings from Rank Math admin or document manually for re-entry. Franchise and multi-branch clients depend on this schema for map pack visibility — treat Local SEO as a launch gate, not a post-launch task.
Keyword Manager and content audit data
Rank Math's Keyword Manager tracks focus keywords and scores per URL — useful for editors, not critical for SERP display. Include rank_math_focus_keyword in meta migration when your bundle supports it so editors retain continuity. Content Audit scores recalculate after migration — do not block launch waiting for green scores; prioritise title, description, canonical, and schema over internal Rank Math ratings.
Rank Math redirection module versus Redirection plugin
If both old and new sites use Rank Math, export redirects from Status & Tools and import on the new install — consolidate with your redirect map CSV. If the old site used Redirection plugin and the new site uses Rank Math, convert CSV format during import. Never maintain active redirect rules in two plugins — loops and conflicting priorities follow.
| Source | Export path | Rank Math import |
|---|---|---|
| Rank Math old site | Status & Tools → Export | Direct import |
| Redirection plugin | Tools → Export CSV | Convert columns; test regex |
| Yoast Premium | SEO → Redirects export | Manual or Rank Math Yoast redirect import |
| Server .htaccess | Dev extract RewriteRules | Enter as Rank Math rules or keep server-side |
Rank Math on WooCommerce after rebuild
Product schema can emit from WooCommerce, Rank Math, or both — disable duplicate Product JSON-LD in Rank Math settings when WooCommerce handles schema, or vice versa. Product title templates in Rank Math differ from page templates; verify top SKUs in Rich Results Test. Variable products need schema on the parent or variants depending on SEO strategy — match what the old site did unless the client explicitly wants change.
Frequently asked questions
Does Rank Math's redirection module replace the Redirection plugin?expand_more
For most agency builds, yes — Rank Math Pro's redirection module handles 301s, 404 monitoring and htaccess rules. On a rebuild, export redirects from whichever plugin the old site used and consolidate into Rank Math on the new site so you're not managing two redirect tables.
Will Rank Math regenerate schema automatically after migration?expand_more
Template-based schema (Article on all posts, Organization site-wide) regenerates from Rank Math settings once configured. Per-page custom schema graphs stored in post meta must be migrated explicitly — they don't rebuild from content alone.
How do I migrate Rank Math focus keywords?expand_more
Focus keywords are stored in rank_math_focus_keyword meta. They're useful for editors but less critical than titles and descriptions for launch. Include them in a meta migration if your bundle supports it; otherwise editors can re-run Rank Math's analysis post-launch.
Does Rank Math's Google Site Kit integration need reconnection?expand_more
Yes after domain or install change. Search Console property, Analytics stream, and OAuth tokens are tied to the WordPress install and URL. Reconnect under Rank Math Analytics settings during staging QA, before launch if possible.
How do I migrate Rank Math role-based access settings?expand_more
Rank Math role manager settings live in options, not post meta. Screenshot or export Rank Math settings JSON if available; recreate which roles see Rank Math menus on handover — clients accidentally noindex the whole site when the wrong role edits global settings.
Will Rank Math Video Schema migrate from old embeds?expand_more
Video schema tied to YouTube/Vimeo embeds often regenerates from content if Video Schema module is active. Custom video schema stored in post meta must migrate explicitly — check rank_math_schema_* keys on pages with self-hosted video.
Can I run Rank Math and Yoast simultaneously during migration?expand_more
Never on production — duplicate meta tags and conflicting schema follow. Run Yoast import to Rank Math on staging after content import, deactivate Yoast, verify Rank Math output, then proceed to QA.
What Rank Math data is lowest priority for launch?expand_more
Internal link suggestions, SEO score colour badges, and historical rank tracking. Highest priority: title, meta description, canonical, robots flags, redirect rules, and schema types that earned rich results on the old site.

Ryan Hale
Head of Front End Development
Ryan Hale is Head of Front End Development at AIRA, where he leads the team building the engine that migrates WordPress sites into native ACF blocks. He has spent more than a decade building and rebuilding WordPress sites for agencies, with deep, hands-on expertise in Advanced Custom Fields, Gutenberg block development, and large-scale content migrations that protect search rankings. He writes about ACF, moving off page builders like Elementor and Divi, and the practical craft of shipping fast, maintainable WordPress rebuilds.
Reviewed to our editorial guidelines.
