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 _redirects in 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 add 200! rewrites.
Apache .htaccess
Paste inside <IfModule mod_alias.c> or directly in .htaccess for mod_alias. RedirectMatch uses regex, so paths are anchored with ^...$. Requires mod_alias (enabled on virtually all shared hosts).
Nginx
rewrite ^/old$ /new permanent; for 301, redirect flag for 302 — place inside a server block. For static file servers, prefer return 301 /new; inside a location = /old block 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 →