Loading tutorials…
Loading tutorials…
RankMath has eaten 35% of the WordPress SEO market in 5 years for one reason: it ships with features Yoast charges Premium for, free. This is the full setup — and the honest comparison so you pick the right plugin once.
Who this is forWordPress site owners installing RankMath fresh, or migrating from Yoast. If you are choosing between the two plugins for the first time, this also covers the decision framework — RankMath is not strictly better; it is different.
What you'll need
Step 1
Two SEO plugins active at once breaks everything. Export Yoast meta as a fallback, then deactivate — but don't delete yet.
WordPress Admin → Plugins → Installed Plugins. Look for Yoast SEO, AIOSEO, SEOPress, The SEO Framework, Slim SEO.
Open the existing plugin and find its export tool. Yoast SEO → Tools → Import and Export → Export settings. AIOSEO → Tools → Import/Export. Save the export file outside the WordPress install.
Deactivate the plugin. Do NOT delete yet — you may need to roll back if RankMath import goes wrong.
Empty any object/page caches now (WP Rocket → Settings → Clear Cache; Litespeed → Toolbox → Purge All). Stale cached HTML can have the old plugin meta tags baked in.
Step 2
WordPress Admin → Plugins → Add New → search "Rank Math SEO" → Install Now → Activate.
WordPress Admin → Plugins → Add New.
Search "Rank Math SEO." First result should be by Rank Math (1M+ active installs — verify before installing).
Click "Install Now," wait, then "Activate."
A new "Rank Math" item appears in the admin sidebar.
Optional but recommended: install Rank Math PRO ($59/yr starting tier) only if you need the schema modules for Recipe/Course/Event/Job Posting, or the advanced redirect rules. The free plugin is enough for 80% of sites.
Step 3
RankMath requires a free account to activate. Then the Setup Wizard walks through 5 sections — be selective with the modules you enable.
After activation, you are redirected to Rank Math → Dashboard. Click "Connect Your Account."
Either sign in with an existing rankmath.com account or create one (free, takes 30 seconds, just needs an email).
Once connected, click "Start Wizard."
Section 1 — Your Site: Choose Personal Blog, Community Blog, Business Site, or Web Shop (if WooCommerce is installed, choose Web Shop). The choice affects which schema defaults Rank Math sets — pick honestly, not aspirationally.
Section 2 — Connect with Google: Optional. Hooks up GSC and Google Analytics 4 inside Rank Math. Useful for the analytics dashboard widget, skip if you already use GSC directly.
Section 3 — Sitemaps: Enable News sitemap, Video sitemap, Image sitemap, or just the basic XML sitemap. For most sites, basic XML sitemap is enough. Image sitemap is helpful for e-commerce.
Section 4 — SEO Tweaks: NOINDEX empty category and tag archives (YES), NOINDEX paginated pages (YES — usually), strip category base (skip unless you understand canonical implications).
Section 5 — Ready: Finish wizard. You land on Rank Math Dashboard.
Step 4
Rank Math → Status & Tools → Import & Export → Plugins. Pick the source plugin and run the import. Verify on 5-10 live URLs after.
Rank Math → Status & Tools → Import & Export.
Click the "Import from Other Plugins" tab. Rank Math should detect Yoast/AIOSEO data still in the database (this is why you did not delete the old plugin yet).
Choose the source plugin. Tick the data types to import: Titles & Meta (YES), Settings (YES — but review after), Redirections (YES if applicable).
Run the import. It usually takes 30-90 seconds.
Open 5-10 published posts in random order. In each post editor, scroll to the Rank Math sidebar. The SEO title and description should match what Yoast had.
View Source on the live post URL. Look for a single <title> tag and a single <meta name="description"> tag. If you see two of either, the old plugin meta is still being output — delete the old plugin now (you have verified import succeeded).
Step 5
Rank Math → Titles & Meta → Posts → Schema Type. This is the feature most users switch from Yoast for. Set defaults per content type.
Rank Math → Titles & Meta → Posts. Scroll to "Schema (Structured Data)."
Set Default Schema Type to "Article" for blog posts. Override per-post for News articles, Reviews, How-To, Recipe.
Repeat for Pages — usually "Web Page" is the right default.
For custom post types (Products, Listings, Services), pick the right schema type. WooCommerce Products: leave Rank Math defaults — they output Product schema correctly.
Validate: open one published post → Rank Math sidebar → Schema. You should see a structured schema preview. Click "Test in Search Console" — opens the Rich Results Test with your URL prefilled.
Step 6
Rank Math sitemap is at yoursite.com/sitemap_index.xml. Submit to GSC and verify it gets processed.
Visit yoursite.com/sitemap_index.xml in a private window. You should see an index with sub-sitemaps.
If you see a 404 or a "page not found" — Rank Math → Sitemap → check that XML Sitemap module is ON.
Open Google Search Console → Sitemaps. Paste sitemap_index.xml. Submit.
Wait 24-72 hours for Google to process. Status should move from "Pending" to "Success."
Spot-check the sub-sitemaps in the same browser. Tag archives you marked NOINDEX in the wizard should NOT appear in the sitemap.
Step 7
Rank Math → Dashboard → Modules. Disable any module you are not using. Each module is overhead.
Rank Math → Dashboard → Modules. You see 18 toggles.
Disable modules you are not using: Local SEO (off unless you are a local business), AMP (off unless your theme is AMP-built), Podcast (off unless you publish podcasts), Web Stories (off unless you use Web Stories), Image SEO (off unless you need bulk alt-text rewriting), 404 Monitor (off — overlaps with GSC and bloats the DB).
Modules to keep on for most sites: Analytics, Link Counter, Local SEO (only if local), Redirections, Role Manager, Schema, Sitemap, WooCommerce (if WC installed).
Restart caching plugin after toggling (so cached page HTML reflects the new module state).
Common mistakes
Running Rank Math and Yoast simultaneously
What goes wrong: Two <title> tags and two meta descriptions output on every page. Two sitemaps. Google chooses one source arbitrarily, often the wrong one. Rankings drift 10-25% within 30 days while indexes diverge.
How to avoid: Deactivate one. Export both plugins' settings first as a safety backup. Only delete the deactivated plugin after verifying live <title> tags via View Source on 5+ pages.
Enabling every Rank Math module by default
What goes wrong: Each enabled module runs queries on page load. With 12+ modules on a shared-host WordPress install at 10,000+ posts, you can lose 200-500ms per page. PageSpeed score drops 8-15 points.
How to avoid: Rank Math → Dashboard → Modules. Disable everything you don't actively use. Re-test PageSpeed Insights before/after.
Skipping the meta-import after deactivating Yoast
What goes wrong: You deactivate Yoast, install Rank Math, and don't run the import. All custom meta titles and descriptions you wrote disappear. Every post falls back to the template — which means thousands of identical-looking titles in Google.
How to avoid: Always Rank Math → Status & Tools → Import & Export → Import from Other Plugins. Run before deleting Yoast.
Letting Rank Math output schema that contradicts the theme
What goes wrong: Many WordPress themes (Astra Pro, GeneratePress Premium, Avada) already output their own Article/BreadcrumbList schema. Rank Math adds its own, and Google sees duplicate schema with mismatched data. Rich results disappear.
How to avoid: Rich Results Test your top 5 page templates. If you see duplicate schema, either disable Rank Math's Schema module for that type, or disable the theme's schema (usually under Customize → Schema).
Not setting canonical tags on paginated archives
What goes wrong: Rank Math defaults paginated archives (page/2/, page/3/) to self-canonical, which Google often interprets as duplicate-content signals. Indexing of the category root weakens.
How to avoid: Rank Math → Titles & Meta → Misc Pages → Noindex Paginated Pages: ON. Or set canonical to point to page 1 — but the standard is to noindex them.
Trusting the Rank Math Score on every post
What goes wrong: Like Yoast, Rank Math gives a 0-100 score per post. Users optimize for the score instead of the reader, producing keyword-stuffed copy that hurts dwell time and rankings.
How to avoid: Use the score as directional feedback only. A 70 with great copy beats a 95 with awkward keyword density. Focus on the reader.
Recap
Done — what's next
How to install and configure Yoast SEO on WordPress
Read the next tutorial
Hand it off
RankMath is a great SEO plugin but it is also the migration most likely to break things on a busy site. A vetted WordPress SEO specialist runs the Yoast → RankMath migration during low-traffic hours, verifies canonicals on the top 50 URLs, and has a rollback plan ready. Typically $80-200 total at $14-16/hr.
See specialist rates
For a fresh site with no SEO history, RankMath gives you more features for free (multiple focus keyphrases, advanced schema, redirect manager — all Premium-only in Yoast). For a 5+ year old site already on Yoast and ranking, the migration risk usually outweighs the feature win — stay on Yoast.
Most sites do not. PRO ($59/yr starting tier) adds Recipe/Course/Event/Job Posting schema modules, advanced redirect rules, and unlimited tracked keywords. Worth it if you publish recipes or courses regularly, or run a multi-location business needing complex redirect rules. Skip otherwise.
Account connection unlocks the auto-update channel and feature flag system. RankMath ships A/B tests of new features via the account. No data leaves your site beyond an anonymous activation token. You can disconnect after setup — the plugin keeps working.
Yoast is still active or its meta is still in the database. (1) Plugins → confirm Yoast is deactivated. (2) Clear all caches (page, object, CDN). (3) View Source — if duplicates persist, the theme might be hardcoding <title> tags in header.php. Remove the hardcoded line.
Yes — RankMath has good WooCommerce integration (product schema, sitemap inclusion, on-product SEO controls). Make sure the WooCommerce module is enabled in Dashboard → Modules and leave WooCommerce-native schema ON.
No real conflicts in 2026. RankMath has a sidebar integration inside Elementor and Bricks. If you use Divi, the Rank Math sidebar appears in the WordPress admin meta box, not inside the Divi visual builder — edit SEO from the admin post editor.
WordPress
Yoast is the default SEO plugin for 13M+ WordPress sites — but most installs ship with the wrong sitemap settings, broken breadcrumbs, and schema that contradicts your theme. This walks through the install + the configuration the wizard skips.
WordPress
Installing Yoast or RankMath is step two. Step one is making sure WordPress itself is configured for SEO — permalinks, indexable content rules, taxonomy hygiene. Skip this and the SEO plugin is putting lipstick on a leak.
WordPress
WordPress is the easiest CMS to start with and the easiest to make a mess of by month 18. This is the honest framework for when DIY becomes the bottleneck and a specialist pays for themselves.