Redirect Rules Generator
Stateless — paste mappings, generate Nginx/Apache/Cloudflare rules. No uploads, no storage.
How to use
-
Bulk rules: paste mappings like
/old -> /new(one per line), then click Generate. - Switch tabs to get Nginx, Apache (.htaccess), or Cloudflare CSV.
- Use Copy or Download for the selected output.
- Redirect checker: paste a URL to see the 301/302 chain. (Blocks localhost/private IPs; only ports 80/443.)
Tip: enable Preserve query strings to keep ?utm_source=... when redirecting.
Build
# Nginx redirects (paste inside your server { ... } )
# Tip: place these ABOVE your main location / { ... }
location = /old-page {
return 301 /new-page;
}
location = /blog/old-post {
return 301 /blog/new-post;
}
location = /old {
return 301 https://example.com/new;
}