301 Redirect

Key Takeaways

  • A 301 redirect permanently sends requests from an old URL to a new address, automatically guiding browsers and visitors to the replacement.
  • Search engines treat 301 redirects as strong signals that the destination should replace the old URL and consolidate related signals.
  • Common uses include URL changes, domain migrations, HTTP-to-HTTPS transitions, duplicate consolidation, and replacing outdated resources.
  • Redirects should target closely matching pages directly, while avoiding chains, loops, unrelated destinations, and temporary redirects for permanent changes.

A 301 redirect is an HTTP response that permanently sends requests from one URL to another. It tells web browsers and search engines that a page or resource has moved to a new permanent URL and that future requests should use the new address.

For example, a request for https://example.com/old-page may be redirected to https://example.com/new-page

In such cases, the browser opens the new address automatically, while search engines receive a signal that the old URL has been permanently replaced.

Illustrative 301 Redirect
Requested URL
https://example.com/old-page
301
Moved Permanently
Server redirects the request
Destination URL
https://example.com/new-page
Browser address bar after the redirect
https://example.com/new-page
The visitor requests old-page, the server returns a 301 permanent redirect, and the browser loads new-page.
A 301 redirect permanently sends requests from an old URL to a new destination URL.

What Is a 301 Redirect?

The number 301 is an HTTP status code. It belongs to the group of status codes used to describe how a server responds to a request.

A normal, accessible webpage usually returns a 200 status code. A missing page may return a 404 status code. A 301 status code indicates that the requested URL has permanently moved to a different location. A 308 Permanent Redirect also indicates a permanent move. Unlike a 301, it ensures that the browser repeats the original request in the same way when accessing the new URL.

A 301 redirect is commonly used when:

  • A page has moved to a new URL.
  • A website has moved to a new domain.
  • HTTP pages are being redirected to HTTPS.
  • Duplicate URL versions need to be consolidated.
  • Several similar pages have been consolidated into one more comprehensive page.
  • An outdated page has been replaced by a newer resource.
  • A product, category, or article has been moved to a new permanent URL.

The redirect helps preserve access to the content and prevents visitors from landing on an unavailable URL.

How a 301 Redirect Works

When a web browser, search engine bot, or other client requests the old URL, the server returns a 301 Moved Permanently response. The response includes the destination URL in the Location header.

The browser then requests the new URL and displays its content. The process happens automatically in most browsers and is often barely noticeable to the visitor.

Google treats a permanent redirect as a strong signal that the destination URL should replace the old URL in its search results. Over time, the new address may appear in search results instead of the old one.

Permanent redirects allow Google to associate the old URL with the new URL or destination and consolidate signals between them. This works best when the destination is a relevant replacement for the original page.

Example of a 301 Redirect

Suppose an article originally uses the following URL:

https://example.com/blog/url-structure-guide

The website later adopts a shorter structure:

https://example.com/seo/url-structure

A 301 redirect should be created from the old URL to the new one. Visitors using bookmarks, internal links, or external backlinks to the original page will then reach the correct destination.

A 301 redirect is also commonly used during a domain migration: https://oldexample.com/services redirects permanently to https://newexample.com/services

In this case, individual old URLs should generally redirect to their closest matching pages on the new domain rather than sending every address to the homepage.

301 Redirect During a Domain Migration
Old Domain
https://oldexample.com/services
301
Moved Permanently
Domain migration redirect
New Domain
https://newexample.com/services
Browser address bar after the redirect
https://newexample.com/services
The /services page keeps the same path, but the request moves permanently from oldexample.com to newexample.com.
During a domain migration, 301 redirects can permanently send URLs on the old domain to their corresponding URLs on the new domain.

How to Set Up a 301 Redirect

Here are basic 301 redirect instructions for common website platforms:

  • WordPress: Use a redirect plugin such as Rank Math or Yoast SEO Premium to enter the old URL, add the destination URL, and select a 301 Permanent Redirect.
  • Adobe Commerce (Magento): On the admin sidebar, navigate to Marketing → SEO & Search → URL Rewrites. Click Add URL Rewrite, choose Custom, fill out the paths, and set the redirect dropdown to Permanent (301).
  • HubSpot: Click the Settings icon, then go to Content → Domains & URLs → URL Redirects.
  • Shopify: Navigate to Content → Menus, and click the URL Redirects link at the top right. If your store runs an older dashboard format, look under Online Store → Navigation → View URL Redirects → Create URL redirect.
  • Wix: Navigate to SEO & GEO → Tools and settings → URL Redirect Manager. Click + New Redirect and select Single redirect.

Note

Always test a redirect after creating it to confirm that the old URL reaches the intended destination directly and does not create a redirect chain or loop.

Important Points and Best Practices

A 301 redirect should lead to a page that closely matches the purpose and content of the original URL. Redirecting an unrelated page may confuse users and provide weak or misleading signals to search engines.

Important practices include:

  • Redirect each old URL to the most relevant available replacement.
  • Use a 301 redirect only when the move is intended to be permanent.
  • Point internal links directly to the final destination instead of through redirects.
  • Preserve the original topic and search intent whenever possible.
  • Test redirects after implementation.
  • Keep important permanent redirects in place rather than removing them shortly after search engines discover the new URLs.
  • Update canonical tags, XML sitemaps, navigation links, and structured data to reference the new URLs where appropriate.
  • Avoid redirecting large numbers of unrelated URLs to one destination.
  • Monitor crawling, indexing, traffic, and errors after large migrations.

Mistakes to Avoid

A common mistake is creating a redirect chain, in which one URL redirects to another URL that redirects again. For example: Page A → Page B → Page C

In such cases, the preferred setup is Page A → Page C

Long redirect chains increase unnecessary requests and may slow crawling or page loading.

A redirect loop is another serious error. It occurs when two or more URLs redirect back to one another, preventing the destination page from loading.

Temporary redirects, such as 302 redirects, should not be used when a permanent change is intended. Similarly, deleted pages should not always be redirected automatically. A page with no relevant replacement may be better served by a proper 404 or 410 response.

A 301 redirect is an essential website management tool for preserving access, consolidating URLs, and communicating permanent location changes to browsers and search engines.

Frequently Asked Questions

What is a 301 redirect?

A 301 redirect is an HTTP status code indicating that a webpage or resource has permanently moved to a different URL.

When should a 301 redirect be used?

Use a 301 redirect when a page has permanently moved, a URL structure has changed, or multiple URLs should consolidate to one preferred destination.

Does a 301 redirect pass SEO value?

A 301 redirect can transfer many of the signals associated with the old URL to the new destination, but the target page should remain relevant and accessible.

You May Have Missed