How to Use the Redirect Generator — Complete Redirect Guide
Redirects are a critical component of technical SEO. Every time you change a URL, move content, or restructure your site, you need redirects to preserve your search rankings, user experience, and link equity. This guide covers everything about implementing redirects correctly.
What Is a URL Redirect?
A redirect automatically forwards a user (and search engine crawler) from one URL to another. When someone visits an old URL, the server sends them to the new location along with an HTTP status code indicating the type of redirect.
301 vs 302: Which to Use?
| Type | Code | Meaning | SEO Impact |
|---|---|---|---|
| Permanent | 301 | Page moved forever | Passes full link equity to new URL |
| Temporary | 302 | Page moved temporarily | Link equity stays with original URL |
Always use 301 redirects when:
- You permanently delete or move a page
- You change your URL structure
- You migrate from HTTP to HTTPS
- You switch from www to non-www
Use 302 redirects when:
- You're running an A/B test
- You're temporarily redirecting during maintenance
- You want to redirect but may revert later
How to Use the Redirect Generator
Step 1: Select Your Server Type
Choose your server platform:
- Apache (.htaccess): Most shared hosting environments
- Nginx: Popular for VPS and cloud servers
- Vercel: For Next.js deployments
- Netlify: For static site hosting
Step 2: Choose Redirect Type
Select either 301 (Permanent) or 302 (Temporary).
Step 3: Enter URLs
- From URL: The old URL that should be redirected
- To URL: The new destination URL
Step 4: Generate and Implement
Copy the generated code and add it to the appropriate configuration file for your server.
Platform-Specific Implementation
Apache (.htaccess)
Redirect 301 /old-page https://example.com/new-page
Nginx (nginx.conf)
rewrite ^/old-page$ https://example.com/new-page permanent;
Vercel (vercel.json)
{
"redirects": [
{
"source": "/old-page",
"destination": "/new-page",
"permanent": true
}
]
}
Netlify (_redirects)
/old-page /new-page 301
Avoiding Redirect Chains
A redirect chain occurs when A → B → C instead of A → C. Redirect chains are bad because:
- Each hop adds latency, slowing page load speed
- Link equity is reduced with each redirect in the chain
- Crawl budget is wasted on intermediate URLs
Best practice: Always redirect directly to the final destination URL. If you have an existing chain, update the originating redirects to point to the final URL.
When to Implement Redirects
Implement redirects whenever you:
- Delete a page: Redirect to the most relevant remaining page or the homepage
- Change a URL: Always redirect the old URL to the new one
- Move to HTTPS: Redirect all HTTP URLs to their HTTPS equivalents
- Consolidate content: Redirect merged pages to the surviving page
- Fix URL structure: Changing
/category/subcategory/pageto/page - Rebrand or merge domains: Redirect the old domain to the new one
Redirect Monitoring
After implementing redirects, verify them using:
- Browser developer tools: Check the Network tab for 301 response codes
- Redirect checker tools: Several online tools can test redirect chains
- Google Search Console: Monitor for coverage errors and see how Google handles redirects
Conclusion
Properly implemented redirects protect your SEO when making site changes. A missing redirect means losing your search rankings, link equity, and sending users to broken pages. Use our free Redirect Generator to create correctly formatted redirect rules for any platform.
See also: Canonical URL Generator and Robots.txt Generator.
Try the Redirect Generator
Generate redirect rules for Apache, Nginx, Vercel & Netlify.
Open Redirect GeneratorWritten by
SEO Utilities Team
The SEO Utilities team is made up of SEO specialists, web developers, and digital marketers passionate about making professional-grade SEO tools free and accessible to everyone. We build, test, and refine every tool based on real-world SEO workflows.