# Redirect Generator > A free 301 redirect generator that runs in the browser: paste old and new URLs and get checked redirect rules for Apache .htaccess, nginx, Netlify _redirects, vercel.json, Next.js next.config.js, a Cloudflare bulk redirects CSV or a plain CSV map. Old URLs without a target are matched against the new site's URL list or sitemap.xml. Nothing is uploaded. https://redirect-generator.skillsafe.ai/ ## What it does (free, no sign-in, nothing uploaded) - Reads the map from a paste or a file: one pair per line separated by spaces, a comma, a tab, a semicolon or an arrow (`->`, `=>`); a CSV with an optional header; Apache `Redirect` / `RedirectPermanent` / `RedirectTemp` lines; a Netlify `_redirects` file; a `vercel.json` (or Next.js) redirects array; or a sitemap.xml of old addresses. Full URLs and paths both work. A third column (or `410` in place of the new address) sets the status per row: 301, 302, 307, 308 or 410. Pattern rules (RedirectMatch, RewriteRule, `:slug` sources) are listed as skipped, not guessed. - Matches old addresses that have no new address against the new site's list (one address per line, a CSV column or a sitemap.xml): the same address (no redirect needed), the same path on the new domain, the same page under a new spelling (capitals, trailing slash, .html/.php, index files), the same page name, then similar words (a score with a margin over the runner-up). The rest are listed with the closest section that exists on the new site. - Checks the map: rows that point at themselves (once trailing slashes and capitals are ignored) and redirect loops are left out; an old address with two different targets keeps the first and is flagged; repeated rows are merged; chains (A to B, B to C) are shortened so A goes straight to C; old pages sent to the home page, temporary 302/307 redirects, ?query rows, rows sent to another domain and targets missing from the new list are flagged. - Writes the rules: Apache mod_rewrite (`RewriteRule ^/?old/?$ /new [R=301,L,NE]`, `RewriteCond %{QUERY_STRING}` for ?query rows, `[G]` for 410); nginx exact `location =` blocks with `return 301 ...$is_args$args` and `if ($request_uri = ...)` for ?query rows; Netlify `_redirects` lines; vercel.json and Next.js `redirects()` objects with `statusCode` and `has` query conditions; Cloudflare bulk redirect CSV rows (source, target, status, preserve query string, include subdomains, subpath matching, preserve path suffix); a CSV map. Options: 301/308/302/307, match with and without a trailing slash, shorten chains, pass the visitor's ?query on, ignore capitals (Apache, nginx), the old site's address for Cloudflare. - Downloads: the rules file (`.htaccess`, `redirects.nginx.conf`, `_redirects`, `vercel.json`, `next.config.redirects.js`, `cloudflare-bulk-redirects.csv`, `redirect-map.csv`), the map as CSV, a Markdown report with every check; or copy the rules. ## Optional AI step (signed-in, metered) "Match the rest with AI" sends only the old addresses the page could not match (up to 150) and the new site's list (up to 600; for longer lists, those sharing words with the old ones first) plus an optional note, and gets back one pairing per old address. The page accepts a pairing only if its new address is on the new site's list, never points an address at itself, and lists every rejected or unanswered one. - API: https://redirect-generator.skillsafe.ai/api.html - Input fields: `task` ("match"), `old_urls` (text, one address per line), `new_urls` (text, one address per line), `note` (text, up to 300 characters), `facts` (JSON text: old_total, old_sent, new_total, new_sent, matched_by_page, old_site, new_site). - Output: one JSON object `{"task":"match","matches":[{"old","new","why"}]}`, one item per old address, `new` copied from `new_urls` or `""` when no page replaces it. ## Source Adapted from the agent skill @calm-north/migrate-site (calm-north/seojuice-skills, MIT): https://skillsafe.ai/skill/@calm-north/migrate-site