Internet & Web

301 vs 302 Redirects

A 301 redirect indicates a resource has moved permanently; a 302 indicates a temporary move. The correct status communicates whether the change should be treated as lasting.

A server responds with a 3xx status and a Location header. Browsers and search engines follow the destination, while caching and signal consolidation depend on status and context.

Two practical examples

Example 1. A site permanently moves an article to a new slug and returns 301.

Example 2. A temporary campaign page sends visitors to a temporary destination with 302.

What to check in practice

  • Identify the exact device, software version or service involved before changing a setting.
  • Record the current configuration so you can reverse a change that causes problems.
  • Test one variable at a time and confirm the result using reliable measurements or logs.
  • Use the official documentation for model-specific limits, compatibility and safety requirements.
Important consideration

Avoid redirect chains and loops. Update internal links and sitemaps to point directly to the final URL rather than relying on redirects.

Common question

What is the first thing to do? Start by identifying the exact use case and the system involved. Then verify the relevant settings or measurements before making changes. A general explanation is a starting point, not a substitute for checking your own environment.

TryHook publishes independent educational explainers. Product names and technical standards belong to their respective owners. Some pages may eventually contain clearly disclosed affiliate links; editorial explanations are not paid endorsements.

Explore more in Internet & Web

Continue with related beginner-friendly guides.

How Does the Internet Work?Read guideHTTP vs HTTPSRead guide