HTTP

HTTP 301 Moved Permanently vs 302 Found

Both HTTP 301 (Moved Permanently) and 302 (Found) belong to the 3xx Redirection category. 301 indicates that the resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL. Meanwhile, 302 means that the resource temporarily resides at a different URL. The client should continue using the original URL for future requests.

Description

The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.

When You See It

After domain migrations, URL restructuring, or when consolidating duplicate URLs.

How to Fix

Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves.

Description

The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.

When You See It

During A/B testing, temporary maintenance pages, or geo-based redirects.

How to Fix

Follow the Location header. Note: browsers may change POST to GET on redirect.

Key Differences

1.

HTTP 301: The resource has been permanently moved to a new URL. All future requests should use the new URL. Search engines will transfer link equity to the new URL.

2.

HTTP 302: The resource temporarily resides at a different URL. The client should continue using the original URL for future requests.

3.

You encounter 301 when after domain migrations, URL restructuring, or when consolidating duplicate URLs.

4.

You encounter 302 when during A/B testing, temporary maintenance pages, or geo-based redirects.

When to Use Which

For 301 (Moved Permanently): Update links and bookmarks to the new URL in the Location header. For SEO, this is the preferred redirect for permanent moves. For 302 (Found): Follow the Location header. Note: browsers may change POST to GET on redirect.

Learn More