Skip to content

Redirect Generator

Turn old and new URLs into ready-to-paste redirect rules.

  • 100% Free
  • No Sign Up
  • Works in Your Browser

Redirect generator

Create 301 redirect rules for your server

More SEO Tools

View all tools

Every everyday SEO tool, right in your browser.

No installs. No uploads. No signup.

Browse all 26 tools
SEO tools
26
Reference guides
7
Bytes uploaded
0

How to use the redirect generator

Three steps, all in your browser.

  1. 1

    List the moves

    Enter each old URL with the new URL it should go to.

  2. 2

    Set the rules

    Add rules or URLs. The result updates instantly.

  3. 3

    Copy the result

    Copy what you need in one click. Nothing is saved or sent anywhere.

Redirect Generator: what to know

When a page moves, a server-side redirect sends visitors and crawlers from the old URL to the new one. The redirect generator turns a list of old and new URLs into redirect rules for Apache (.htaccess), Nginx and several popular hosting platforms and frameworks, as permanent (301, 308) or temporary (302, 307) redirects, ready to paste into your configuration. It can also write whole-site rules, such as forcing HTTPS, choosing www or not, and moving to a new domain.

The status code tells search engines how to treat the move. A 301 or 308 is a strong signal that the new URL should replace the old one in the index, and signals such as links are consolidated there. A 302 or 307 is a weak signal, used when the old URL will come back. Google follows up to 10 redirects in a chain, but each hop adds delay, so every old URL should point straight at its final destination.

For a migration, map each old URL to its closest equivalent, not to the home page: mass redirects to the home page are often treated as soft 404s. Keep redirects in place for at least a year, and ideally for good, since links and bookmarks to the old URLs keep arriving. Test a sample of rules on a staging server before you go live; a misplaced rule can create loops.

Popular uses

  • Mapping old URLs to new ones in a site migration
  • Redirecting renamed blog posts and products
  • Consolidating duplicate pages into one
  • Moving pages between sections of a site

Tips for the best result

  • Export old URLs from your sitemap or analytics so none are missed.
  • Update internal links to the new URLs too, rather than relying on redirects.
  • After launch, check Search Console for 404s you didn't redirect.

Read how JustYourSEO works and our privacy details. Text, HTML and images you use here are processed in your browser and are never sent to our server.

Frequently asked questions