Schema & Technical SEO · 100% Free · No Signup

.htaccess Redirect Generator

Every changed URL without a 301 leaks link equity and strands visitors on 404s. This generator converts a plain 'old-path new-path' list into Apache Redirect 301 rules, ready for your .htaccess — the difference between a migration that preserves rankings and one that torpedoes them.

Redirect each old URL to its most relevant new counterpart (not everything to the homepage — Google treats blanket homepage redirects as soft 404s). Always test on staging first: a malformed rule can loop the whole site.

How to Use the .htaccess Redirect Generator

  1. 1List one redirect per line: /old-path /new-path.
  2. 2Copy the generated rules into .htaccess (Apache).
  3. 3Test key URLs return 301 with correct targets.
  4. 4Monitor Search Console's crawl errors for 404 stragglers.

Frequently Asked Questions

301 vs 302 — which redirect for SEO?
301 (permanent) for moved content — it transfers ranking signals. 302 (temporary) only for genuinely temporary situations; long-lived 302s eventually get treated as 301s but slower.
Do 301 redirects lose PageRank?
Google has stated 301s pass full PageRank since 2016. Chains still waste crawl budget and latency — redirect old→new directly, not through intermediate hops.
Should I redirect deleted pages to the homepage?
No — Google classifies irrelevant blanket redirects as soft 404s. Redirect to the closest relevant page, or honestly serve a 410/404 if no equivalent exists.