Redirect Rule Generator
Generate redirect rules for Apache, Nginx, Netlify, Vercel and Next.js.
To create a redirect rule, enter the old and new paths and pick your server. Rules are generated for Nginx, Apache, Netlify, Vercel and Next.js. Use 301 for permanent moves so search engines transfer ranking signals to the new URL.
Runs in your browser- Privacy
- Runs entirely in your browser — nothing is uploaded
- Cost
- Free, unlimited, no sign-up
Frequently asked questions
Should I use 301 or 302?
How to use the redirect rule generator
- 1Enter or paste your from path.
- 2Enter or paste your to path or url.
- 3Choose the server.
- 4Turn "Permanent (301)" on or off as needed.
- 5The result appears immediately — copy or download it.
Embed this tool
Put the working redirect rule generator on your own site. It runs in your visitors' browsers exactly as it does here — free, no account, nothing uploaded.
Share this tool
Related tools
Log File ParserParse Apache, Nginx or JSON log lines into a sortable table with traffic summaries.Cron Expression ParserTranslate a cron expression into plain English and see when it will next run..gitignore GeneratorBuild a .gitignore file for your stack, with the entries people usually forget.htpasswd GeneratorCreate Apache and Nginx basic-auth credentials with bcrypt, SHA-1 or MD5-crypt.Naming Convention ConverterConvert an identifier between every common naming convention at once.Cron Next Run CalculatorSee the next fire times for a cron expression, with each field explained.
Last updated
More developer tools