All tools

301 & 302 Redirect Generator

Map old URLs to their new destinations and generate rules for Apache or Nginx.

1
1 of 25 pairs
301

Permanent redirectUse when the old address has permanently moved.

Generated rules
Add valid URL pairs, then generate the rules.

Choose the destination before choosing the status

The old page is gone for good

Use 301 for a permanent move to the page that replaces it. Check that the destination is relevant to visitors who still use the old link.

The original page will return

Use 302 for a temporary detour. Keep track of when the rule should be removed.

Before pasting the rule into your server config

  • Select Apache or Nginx to match the server that handles the request.
  • Review each old/new URL pair, especially similar paths and query strings.
  • Test the rule on staging, then check both the old address and the final page.

The generator can flag an identical source and destination or an HTTPS downgrade. It cannot see existing rules on your server, so conflicts and multi-rule loops still need a live test.

Follow the live redirect chain after deployment →