MagicTools
Back

Redirect Generator

Generate 301 and 302 redirect rules for Apache, Nginx, Netlify, Vercel, and more.

Redirect settings

Generate redirect rules for Apache, Nginx, Netlify, Vercel, and more.

Code
301
Format
apache
Source length
9
Target length
28

Redirect rule

How to use / Why use this tool / FAQ

How to use

Enter the old path and the new destination URL, choose 301 or 302, then select the output format such as Apache, Nginx, Netlify, or Vercel.

Why use this tool

Redirect rules are essential during site migrations, URL changes, and SEO maintenance. This tool generates the correct syntax quickly for common environments.

FAQ

What is the difference between 301 and 302?
301 is a permanent redirect and 302 is a temporary redirect. For most SEO migrations, 301 is the usual choice.
Can I use it for Netlify or Vercel?
Yes. The tool includes snippets for both Netlify and Vercel.