The Website Previewer

Redirect Generator

301 Redirect Generator

Paste your old→new URL map (one per line) and get ready-to-paste .htaccess and nginx 301 rules — essential when a migration changes URLs. Add HTTPS and www canonicalization with one click, then confirm each redirect with the redirect checker.

Apache (.htaccess)


                

nginx


                

Frequently asked questions

301 or 302?

Use 301 (permanent) for moved URLs so link equity transfers; 302 (temporary) only for short-term redirects.

Does it handle full-domain redirects?

Yes — toggle force-HTTPS and www/non-www canonicalization, and it adds the rules for both nginx and Apache.

Where do the rules go?

Apache rules go in .htaccess or the vhost; nginx rules go in the server block. Verify each with the redirect checker.

Related free tools

Toggle navigation