301 vs 302 Redirects & Redirect Chains: The Complete Guide

An HTTP redirect is a server response that tells a browser or crawler "the content you asked for is actually somewhere else" — and which status code it uses (301, 302, or a handful of less common variants) changes how search engines treat the move, not just how the browser behaves. This guide covers exactly when to use which redirect type, how redirect chains and loops actually happen, how many hops search engines will follow before giving up, and how much ranking value genuinely transfers.

🕒 Updated November 12, 2026 📘 ~11 min read 🆓 Free forever 🛠️ Check a redirect chain
Rahib Ali
Written & maintained by Rahib Ali
AI Engineer | Senior Full-Stack Developer | Python · PHP/Laravel · LLMs · AI Agents · 12+ years experience · Updated November 12, 2026

Written from real migration cleanups where redirect chains and loops had accumulated across multiple past site changes — the exact leftover-rule pattern described above is the actual root cause found and fixed each time, not a generic textbook description.

Available for SaaS & AI automation projects → Hire me · Portfolio · Services