301 Redirect Generator

Create redirect rules for moved pages.

Loading tool...

How to use 301 Redirect Generator

  1. Enter one redirect per line as: /old-path /new-path.
  2. Choose 301 (permanent) or 302 (temporary).
  3. Copy the Apache or Nginx rules into your server configuration.

About this tool

A 301 redirect tells browsers and search engines that a page has moved permanently, passing most ranking signals to the new address. Use 302 only for temporary moves. Each old address must start with a slash, and the target can be a path on the same site or a full URL.

Test redirects after deploying and avoid chains of several redirects, which slow pages down.

Frequently Asked Questions

301 or 302?
Use 301 for permanent moves and 302 for temporary ones.
Does a redirect keep my SEO value?
Mostly yes. Google treats 301 redirects as a signal to transfer the page's ranking signals.

Related tools