Redirect Map Converter
RankMath CSV → NGINX & Apache redirects
Turn a RankMath redirect map into server config — no brainpower required.
Export your redirects from RankMath (or build the CSV by hand), paste it below, pick Apache or NGINX, and copy clean, ready-to-paste redirect rules. Everything runs in your browser — nothing is uploaded anywhere.
1. Paste your RankMath CSV
Drop in the same file you'd import into RankMath → Redirections.
Columns: source, match type, destination, HTTP code, status
2. Choose your server & options
Adds the RewriteEngine wrapper for a full .htaccess.
Rules marked inactive in RankMath are skipped by default.
3. Copy your redirects
.htaccess# Your generated Apache rules will appear here.
# Paste a CSV on the left to get started.Expected CSV format
Same columns as a RankMath redirections export. Column names are flexible and the order is auto-detected. If there's no header row, columns are read as: source, match type, destination, code, status.
sources_fromThe old URL or path to redirect from, e.g. /old-page.
sources_comparisonHow to match: exact, contains, start, end or regex. Defaults to exact.
url_redirect_toWhere it should go — a path like /new-page or a full https:// URL.
header_codeHTTP code: 301 (permanent), 302 / 307 (temporary), 410 (gone), 451.
statusactive or inactive. Inactive rules are skipped unless you opt in.