Bulk redirect rule formatter
Paste one redirect per line as old-path new-path (whitespace, tab or comma separated — full URLs
work too). Pick the status code and target platform, then copy or download the formatted rules.
0 pairs parsed
Where each format goes
- Cloudflare Pages / Workers
- Save as
_redirectsin your site's output directory (Cloudflare Pages) or use the same syntax in Bulk Redirects. One rule per line:from to status. Place rules before asset serving; static files take precedence unless you add200!rewrites. - Apache .htaccess
- Paste inside
<IfModule mod_alias.c>or directly in.htaccessformod_alias.RedirectMatchuses regex, so paths are anchored with^...$. Requiresmod_alias(enabled on virtually all shared hosts). - Nginx
rewrite ^/old$ /new permanent;for 301,redirectflag for 302 — place inside aserverblock. For static file servers, preferreturn 301 /new;inside alocation = /oldblock for exact-match speed.
Regex note: formatter escapes dots and anchors paths, so plain paths behave literally. If your paths contain regex characters intentionally, edit the output before deploying.
Recommended hosts with redirect support (Apache/nginx or edge redirects): browse the directory. Migrating hosts? Check the tools index for the cost calculator. Back to all tools →