← All tools

301 Redirect Generator

Turn a list of old → new URLs into ready-to-paste 301 redirect rules for Apache .htaccess, Nginx, or a WordPress redirect plugin CSV. Free, and generated entirely in your browser.

Old URL / path New destination Type

🔒 Generated locally in your browser — your URLs never reach a server. For .htaccess, paste above the # BEGIN WordPress block.

What this does

Paste your old → new URL pairs and this tool generates clean 301 redirect rules in the format you need — Apache .htaccess, Nginx, or a CSV you can import into a WordPress redirect plugin. Everything is generated in your browser; nothing is uploaded.

How to use it

  1. Add your redirects — one old path and one new destination per row. Use site-relative paths (/old-page/) or full URLs.
  2. Pick a redirect type per row — 301 permanent (default) or 302 temporary.
  3. Choose an output format: .htaccess, Nginx, or CSV.
  4. Copy the result and paste it into your config or import the CSV into your plugin.

When you need redirects

Redirects keep links and rankings intact whenever a URL changes — during a site migration or redesign, when you merge or delete posts, switch permalink structures, move to HTTPS, or change your domain. A correct 301 passes the old page’s ranking signals to the new one and sends visitors (and bookmarks) to the right place instead of a 404.

Best practices

  • Prefer 301 for anything permanent. It consolidates ranking signals; 302 does not.
  • Avoid chains. Redirect straight to the final URL, never to another redirect.
  • Match trailing slashes to your site’s canonical style so you don’t bounce between two versions.
  • Test after deploying. Confirm each old URL lands on the intended destination with a single hop.
  • Keep a record. Store your redirect map so future migrations can be reasoned about.