Turn a list of old and new URLs into ready-to-use redirect rules for Apache (.htaccess), nginx, Cloudflare, Vercel or Netlify.
RewriteEngine On
# /pricing-old → /pricing
RewriteRule ^pricing-old/?$ /pricing [R=301,L]
# /blog/2019/* → /blog/*
RewriteRule ^blog/2019/(.*)$ /blog/$1 [R=301,L]
# http://example.com → https://www.example.com
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]One pair per line; use * to move a whole folder.
Apache, nginx, Cloudflare, Vercel or Netlify.
Paste the rules, then check them with the Redirect Checker.
Use 301 for moves that are permanent — search engines move rankings to the new URL. Use 302 only for short-term moves.
Apache: .htaccess in the site root. nginx: inside the server block. Cloudflare: Rules › Redirect rules. Vercel: vercel.json. Netlify: _redirects.
We flag chains and loops before you copy, so each URL reaches its final address in one step.