Htaccess Redirect Generator
An htaccess redirect generator is a tool that converts old and new URLs into Apache directives such as…
Match old URLs to new ones and export a ready to use 301 redirect map for your migration.
| Old | New | Score |
|---|

The free redirect map generator runs in your browser, needs no sign-up and never sends what you type anywhere.
This redirect map generator pairs your old URLs with new ones, either line by line or by auto matching similar slugs, then exports the map as CSV, Apache htaccess, Nginx or WordPress plugin CSV. Rule of thumb: map every old URL to its closest equivalent, never mass redirect to the home page, and avoid chains.
A redirect map generator is a tool that builds the old URL to new URL table you need before a site migration. It compares the last path segment of each URL, scores word overlap between slugs, keeps the best match above a threshold, and flags unmatched URLs, loops and chains so you can fix them by hand.

A redirect map is a list that pairs every old URL with the new URL it should 301 redirect to during a site migration. Building it first lets you keep links and rankings, avoid 404s and spot pages with no equivalent. Google recommends preparing this mapping in its site move guide.
No, redirecting many unrelated old pages to the home page can be treated as a soft 404, so the old signals may be lost. Map each URL to the closest relevant page instead, such as the matching product, category or article. If no equivalent exists, a 404 or 410 is the honest answer.
Keep migration redirects for at least 1 year, which is what Google recommends so it can transfer signals and recrawl links. Pages with valuable backlinks should keep their redirects permanently, since external sites rarely update their old links.
| Export format | Use it for | Rule example |
|---|---|---|
| CSV | Review in a spreadsheet and share with developers | /old-page/,https://example.com/new-page/ |
| Apache htaccess | Apache and LiteSpeed hosting | RedirectMatch 301 ^/old-page/?$ https://example.com/new-page/ |
| Nginx | Nginx servers inside a server block | location = /old-page/ { return 301 https://example.com/new-page/; } |
| WordPress plugin CSV | Import into a redirect plugin | /old-page/,https://example.com/new-page/,0,301 |
Example: old URLs /blog/seo-tips-2024/ and /services/link-building.html and new URLs /blog/seo-tips/ and /link-building-services/. Auto match pairs seo-tips-2024 with seo-tips (score 67%) and link-building with link-building-services (score 67%). Both pass the 50% threshold and export as 2 rules.
It takes the last part of each URL path, splits it into words on hyphens and underscores, removes the file extension and compares word overlap. Exact slug matches score 100%. Anything under your chosen threshold is left unmatched so you can map it by hand instead of trusting a guess.
Combine your old XML sitemap, a crawl of the old site, top landing pages from analytics and pages with backlinks from Search Console. Include images and PDFs that earn traffic. The more complete the list, the fewer 404s you will see after launch.
A chain happens when a new URL in your map is itself redirected to another URL, so users and crawlers make two or more hops. Point each old URL directly to the final destination. Google follows short chains, but each hop slows users down.
Both are permanent and Google treats them the same way for canonicalization. 301 is the most widely supported and is what this tool exports. Use 302 or 307 only if the move is temporary and you plan to switch back.
The export uses source, target, regex flag and status code columns, a common import layout. Plugins differ, so check your plugin import screen and adjust column names if needed. Always test a few redirects after importing.
No. Matching and export happen entirely in your browser, so your site structure stays private. Large lists of several thousand URLs work, but matching is quadratic, so very large lists may take a few seconds on slower devices.
Facts checked against these official pages. Read how I check facts in my editorial policy.
An htaccess redirect generator is a tool that converts old and new URLs into Apache directives such as…
A canonical tag generator is a tool that builds the link rel="canonical" element telling search engines which…
An Nginx redirect generator is a tool that turns old and new URLs into Nginx configuration such as location =…
Coming 12 OctSend your website and I will check it for you, free.
One short email when something new goes live: articles, free SEO tools, package updates, discounts and price alerts. No spam, unsubscribe in one click.