Redirect Generator
Create 301 redirect rules for Apache .htaccess and Nginx from old → new path pairs. Generated entirely in your browser.
🔒 Runs entirely in your browser — nothing is uploadedWhat the Redirect Generator does
The Redirect Generator turns a simple list of old → new path pairs into ready-to-use redirect rules for the two most common web servers: Apache, via .htaccess, and Nginx, via its server block. You choose whether each redirect is a permanent 301 or a temporary 302, and the tool writes correctly formatted directives that you can copy or download and drop into your configuration. It handles both relative paths, such as /old-page to /new-page, and full absolute destinations when you are moving traffic to another domain.
Redirects are essential whenever URLs change — during a site redesign, a move to HTTPS, a domain migration, or simple content reorganization. A correct 301 preserves the majority of the link equity and rankings a page has earned and sends both users and search engines to the new location instead of a dead 404. Getting these rules right protects the SEO value you have built up and keeps bookmarks, backlinks and old search listings working.
301 versus 302 and migration tips
Use a 301 when the change is permanent, which is almost always the case for renamed or consolidated pages; it tells search engines to transfer ranking signals and update their index to the new URL. Reserve 302 for genuinely temporary situations, such as a short promotion or A/B test, where you want the original URL to keep its standing. Avoid long redirect chains — one hop from old to final is ideal, because each extra hop slows the page and dilutes signals. When migrating in bulk, map every important old URL to its closest new equivalent rather than blanket-redirecting everything to the homepage, which search engines treat as a soft 404.
Private, browser-based workflow
All rules are generated locally with client-side JavaScript; your URL structure is never uploaded or logged. That keeps a planned migration confidential while you prepare it. After deploying, test a sample of redirects with your browser's network tab or a header-checking tool to confirm they return the expected status code and land on the correct destination, and keep the mapping documented so you can audit it later.
How to use
- Add redirect pairsEnter the old path and the new path or URL on each line.
- Pick a serverSwitch between Apache .htaccess and Nginx output.
- Copy or downloadPaste the rules into your server config and reload.