301 Redirect

A 301 redirect is an HTTP response that permanently sends requests from one URL to another. It tells 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

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

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 moved permanently 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 browser, search engine crawler, 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 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.

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.

Important 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

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.

You May Have Missed