Redirect Generator
List old and new URLs, choose the status code, and get ready-to-deploy redirect configuration for your hosting platform. The tool only writes the code — it does not change your server or test live redirects.
1. Redirect mappings
LocalOld: a path starting with / (or a full URL for one host). New: a path or a full http(s) URL.
| # | Old | New | Status |
|---|
2. Configuration
.htaccessThis tool only generates configuration. Deploy it to your hosting platform yourself and test every redirect — it does not create, change or test live redirects.
About Redirect Generator
Redirect Generator turns a list of old and new URLs into redirect configuration for Apache .htaccess, Nginx, Netlify _redirects or Vercel vercel.json, with 301, 302 or 308 status codes. It validates every mapping and blocks empty rows and obvious loops.
When pages move, redirects send visitors and search engines to the new address. Writing the rules by hand for each platform is fiddly and easy to get wrong; generating them from one table keeps them consistent. The tool writes code only — you deploy and test it on your host.
Step by step
- Enter the old path (starting with /) or full URL in the first row.
- Enter the new path or full URL and choose 301, 302 or 308.
- Add more rows for every page that moved.
- Fix any highlighted rows — empty, invalid or looping redirects are blocked.
- Choose your platform: Apache, Nginx, Netlify or Vercel.
- Copy or download the code, deploy it to your host, and test each redirect.
What it offers
- Single or many redirects in one table
- 301, 302 and 308 status codes per row
- Apache, Nginx, Netlify and Vercel output
- Checks for empty rows, invalid paths, duplicates and loops
- Warnings for redirect chains
- Readable mapping table, Copy and Download
Tips for best results
- Use 301 or 308 for permanent moves and 302 only for temporary ones.
- Redirect each old URL straight to its final destination, not through a chain.
- Point old pages to the most relevant new page rather than the home page.
- Back up your existing configuration before adding new rules.
- Test every redirect after deploying, and update internal links to the new URLs.
Why people use it
One table, four platforms
Switch output without retyping your redirects.
Fewer mistakes
Validation catches loops, duplicates and malformed paths.
Readable
A mapping table shows exactly what each rule does.
Private
Generated locally; your server is never touched.
Common questions
This runs entirely in your browser
No file or text you enter here is uploaded. Encoding and decoding happen on your device using native browser APIs — close the tab and nothing remains on a server.