Advertisement

Redirect Generator — Create 301/302 Redirect Rules

Generate properly formatted redirect rules for your web server. Supports .htaccess (Apache), Nginx, Next.js, and Vercel configurations for both permanent (301) and temporary (302) redirects.

.htaccess Output

Redirect 301 /old-page /new-page

How to Use

  1. Choose your output format.
  2. Enter the source (from) and destination (to) paths.
  3. Select redirect type: 301 or 302.
  4. Add multiple redirects as needed.
  5. Copy the generated code.

How It Works

1

Enter

Input your data into the tool above.

2

Calculate

The tool processes your input instantly.

3

Copy / Download

Copy or download your results.

Frequently Asked Questions

What is the difference between 301 and 302 redirects?
301 is permanent — search engines transfer SEO value to the new URL. 302 is temporary — the original URL retains its SEO value.
When should I use a 301 redirect?
Use 301 when a page has permanently moved, such as during a site migration or URL restructuring.
Will redirects slow down my site?
A single redirect adds minimal latency. Avoid redirect chains (A→B→C) as each hop adds delay.

Related Tools

Advertisement