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- Robots.txt generatorCreate a robots.txt file, including AI crawler rules
- Robots.txt testerCheck whether a URL is allowed for a crawler
- Sitemap generatorTurn a list of URLs into sitemap.xml
- Sitemap validatorCheck sitemap.xml for errors and bad URLs
- Hreflang tag generatorCreate hreflang link tags for language versions
- SERP previewSee how a page could look in Google results
- Meta tag generatorCreate title, description and robots meta tags
- Schema markup generatorCreate JSON-LD structured data for common types
- Keyword density checkerCount how often words and phrases appear
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
List the moves
Enter each old URL with the new URL it should go to.
- 2
Set the rules
Add rules or URLs. The result updates instantly.
- 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.