How to Do Redirects Right? A Complete SEO Guide
One wrong redirect can quietly kill your traffic. Learn what a proper redirect is, when to use 301 vs 302, and how to protect your rankings during any site change.
Behnam Khushab
Published on November 26, 2025

Why Redirects Are About Power, Not Just Technical Settings
Every URL on your website is essentially a doorway to user attention and trust. When you change a URL, you're literally moving that door. If you don't redirect properly, here's what happens:
- Users hit a 404 error and leave immediately
- Google receives confusing signals about your content
- Your valuable backlinks essentially burn up
- Your rankings and revenue take a nosedive
When done correctly, redirects are like transferring all the authority from the old door to the new one without losing anything. When done wrong, you're handing your power over to competitors on a silver platter.
This guide will show you exactly:
- What constitutes a proper redirect
- When to use 301, 302, 307/308, or no redirect at all
- How to handle real-world scenarios (redesigns, domain changes, content removal) without burning your SEO
What Is a Redirect? (Simple Definition, No Jargon)
A redirect means when a user or bot (like Googlebot) visits an old URL, the server tells them: "This content has moved there → Please go to this address from now on."
This message is sent using HTTP Status Codes. Here are the most important ones you need to know:
301 – Moved Permanently
This means the move is permanent. The destination is the official replacement for the previous URL. This type is classically considered the "best option for SEO" in permanent changes.
302 – Found / Moved Temporarily
This means the move is temporary and the original URL is expected to return. Used for A/B testing, temporary campaign landing pages, etc.
307 – Temporary Redirect
A more modern version of 302 that preserves the request method (GET/POST) more precisely; for us, it's typically the same "temporary" in terms of strategy.
308 – Permanent Redirect
The modern version of 301, with clearer behavior regarding request methods.
Meta Refresh / JavaScript Redirect
This is a client-side (browser) redirect, not server-side; usually not the ideal option for SEO and only used in special circumstances.
Important note: Google has emphasized in recent years that from a "link equity" perspective, different types of redirects (especially 301 and 302) don't have significant differences; but the meaning and intent behind the code still matters. If the move is permanent, send a permanent signal; if temporary, send temporary.
Choosing the Right Redirect: Decision Map
To keep things simple, here's a straightforward decision tree:
Has the Content Moved Permanently?
Yes, the new address will permanently replace the old one.
Examples:
- Changing URL structure (/blog/post-1 → /mag/post-1)
- Domain change (example.com → example.ir)
- Removing m-dot version (m.example.com → example.com)
✅ Use: 301 (or 308)
No, I'm temporarily sending to somewhere else.
Examples:
- Temporary campaign landing page
- A/B testing between two pages
- Main page during maintenance
✅ Use: 302 (or 307)
Is There Truly Equivalent Content?
If you have a page with truly similar/better content for /old-page called /new-page → ✅ 301 from /old-page to /new-page
If you've completely removed the content and have no real replacement:
- If you have a related topic that makes sense for the user → you can redirect to a category or nearby content page
- But if you have nothing related → sometimes a 404 or 410 is better than a deceptive redirect; because you're not misleading Google
Never Do These Things:
- Redirect all 404 URLs to the homepage
- Redirect deleted product pages to unrelated pages just to avoid 404s
- Long redirect chains (A → B → C → D)
These send bad signals to Google and ruin user experience.
Real-World Scenarios: What Type of Redirect in Each Case?
Site Redesign and URL Structure Change
Example: /blog/how-to-redirect → /mag/seo/how-to-redirect
Checklist:
- Before launch, create a URL Mapping file:
- Column A: Old URLs
- Column B: New URLs
- For each old URL, determine a single, logical destination
- On the server, set up a 301 for each row
- After launch:
- Update internal links to new URLs
- Submit new sitemap in Search Console
Domain Change (Branding, Migration to Local Domain .ir, etc.)
Example: https://example.com/... → https://example.ir/...
Google's principles for Site Move with URL change are very clear:
- Fully prepare the new domain (content + URL structure)
- Set up 301 redirects one-to-one from old domain to new (page-to-page, not domain to homepage)
- Update addresses in Search Console and configure "Change of Address" (if available)
- Try to keep both domains accessible for a while, but redirect all traffic to the new one
- Keep 301s for at least several months, preferably 1 year or more; especially if you have many backlinks
HTTP → HTTPS
This one's a classic: All HTTP versions should go to their HTTPS versions with 301.
http://example.com/page → https://example.com/page
If done correctly, this migration both increases security and user trust. Google officially considers HTTPS a ranking signal, so 301s here are part of the SEO game.
Duplicate Versions (www / non-www, Trailing Slash, Language, etc.)
- example.com ↔ www.example.com: Choose one (Preferred), always send the other to it with 301
- /page ↔ /page/: Technically two different URLs; standardize one and 301 the other
- Multilingual sites: Usually language-based redirects are done carefully. It's better to keep the main version accessible and use hreflang, not aggressive wrong redirects
Technical Checklist for Proper Redirects
This is where the difference between beginner and professional work becomes clear.
Before Implementation
Full URL Inventory
List all important URLs (especially those that have organic traffic, backlinks, or are used in campaigns)
URL to URL Mapping
Each old URL → exactly one new URL
Test on Staging
If possible, test redirects on a staging server
During Implementation
Place the redirect in a layer that:
- Executes quickly (e.g., web server: Nginx/Apache)
- Creates minimal complexity
Use simple, understandable rules; overly complex regex will trap you in the future
As much as possible:
- Avoid Redirect Chains: Bad: A → B → C → D | Good: A → D
- Quickly detect Redirect Loops with tools like DevTools or curl
After Launch
After redirects are active:
- Quick site crawl with tools (Screaming Frog, Sitebulb, or your own script)
- Check for: 404s, chains, wrong redirects
- In Google Search Console:
- Monitor Coverage errors
- If needed, Request Indexing for some important URLs
- Check server logs: See which old URLs are still getting visits and make sure their redirects are set correctly
Fatal Redirect Mistakes (That Slowly Kill SEO)
Using 302 for Permanent Moves
Many developers use 302 out of habit, even when content has permanently moved. What's the problem? Google understands from long-term behavior that the move is permanent, but this recognition takes time, and during this period you might have ranking fluctuations. It's better to send a clear and correct message: permanent change → 301.
Redirecting Everything to Homepage
The most famous mistake in domain migration or redesign: /product/123, /blog/post-1, /service/seo → all to /
From user and Google perspective: User expects a product or article; suddenly lands on a generic page. Google sees this behavior like a Soft 404; meaning it thinks the URL doesn't actually have related content.
Chains and Loops
Long chains:
- Slow down speed
- Have many breaking points
- May be cut off at some point for some bots
Loops:
- Essentially lock users and bots
- Often quickly detected and blocked by browsers
Forgetting Internal Links and Canonicals
If you've changed the URL and only set up a redirect but internal links still point to the old address and canonical tag still shows the previous URL, you're actually sending contradictory signals to Google. It's better to:
- Canonical should always be on the final destination
- Update internal links so redirects are only needed for external and old links
Do Redirects Destroy My SEO?
This is a classic question.
Short answer: If done correctly, not only do they not destroy SEO, but they're the only way to preserve SEO power during structural site changes.
Google has explicitly stated: Redirects (30x) generally transfer link equity; the historical difference between 301 and 302 in terms of "link juice" is very small or negligible in practice, but proper use of each is still important.
Problems start when:
- Mapping is wrong
- Destination is irrelevant
- You have too many chains and loops
Final Checklist: "What Does a Proper Redirect Look Like?"
- Before any change, prepare a complete list of important URLs
- For each old URL, find a logical new URL close in content
- If the change is permanent → 301/308 | If temporary → 302/307
- Avoid redirecting everything to homepage
- Eliminate chains: always try to have A go directly to Z
- Update internal links and canonicals
- After launch, monitor status with crawl and Search Console
- Don't remove 301s too soon; especially when you have backlinks or organic traffic
If you execute this checklist, you're essentially taking control of traffic flow, preserving your backlink investment, and maintaining the stability of your key rankings.
When to Do It Yourself, When to Hand It to a Professional Team?
Technically, even a developer with average knowledge can write a few simple 301s and move a few URLs around. But in sensitive scenarios like:
- International domain migration to local domain (.ir, .de, etc.)
- Complete URL structure change on a site with dozens/hundreds of pages with organic traffic
- Merging multiple sites into one domain
- Sites that are currently serious revenue sources
Every small mistake can cut your traffic in half for months, open opportunities for competitors, and reduce your "online bargaining power."
This is where having a team that's both technical and deeply understands SEO becomes valuable. If you want a low-risk, calculated scenario for redesigns, domain migrations, or cleaning up your messy URL and redirect situation, you can entrust this work to a team that will design a complete redirect map before implementation, handle technical implementation during execution, and monitor SEO and make necessary corrections after launch.