.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
- 1List one redirect per line: /old-path /new-path.
- 2Copy the generated rules into .htaccess (Apache).
- 3Test key URLs return 301 with correct targets.
- 4Monitor Search Console's crawl errors for 404 stragglers.
Frequently Asked Questions
301 vs 302 — which redirect for SEO?
Do 301 redirects lose PageRank?
Should I redirect deleted pages to the homepage?
Related Free Tools
Normalized rel=canonical from any messy URL.
Correct robots.txt with presets and AI-bot rules.
URL list in, standards-valid sitemap.xml out.
Built by GuestPostOn — the free guest post marketplace with 10,000+ verified sites, full SEO metrics, and transparent pricing. Browse verified guest post sites →