What Is a 301 Redirect?

On this page
  1. How Does a 301 Redirect Work?
  2. Why Use a 301 Redirect?
  3. SEO Benefits
  4. Example
  5. 301 vs. 302 Redirect
  6. Common Uses
  7. Redirect HTTP to HTTPS
  8. Redirect Non-WWW to WWW
  9. Redirect an Old Page
  10. Redirect an Entire Domain
  11. Summary

A 301 Redirect (Moved Permanently) is an HTTP status code that tells browsers and search engines that a page has been permanently moved to a new location.

When a visitor attempts to access the old URL, they are automatically redirected to the new address.

For example:

https://old-domain.com

can be redirected to:

https://new-domain.com

or:

https://yourdomain.com/old-page

to:

https://yourdomain.com/new-page

How Does a 301 Redirect Work?

When a browser or search engine requests a page that has a 301 redirect configured:

  1. The server responds with the HTTP status code:
301 Moved Permanently
  1. The server provides the new destination URL.
  2. The browser automatically loads the new address.
  3. Search engines update their indexes to reflect the new location.

Because this process happens before the page content is loaded, visitors usually do not notice the redirect.

Why Use a 301 Redirect?

A 301 redirect is commonly used when:

  • Changing a domain name
  • Moving a website to a new address
  • Renaming pages or URLs
  • Consolidating duplicate content
  • Redirecting HTTP traffic to HTTPS
  • Redirecting non-www URLs to www (or vice versa)

SEO Benefits

A 301 redirect is considered the preferred method for permanent URL changes because it informs search engines that the move is intentional and permanent.

Search engines such as Google generally:

  • Transfer ranking signals from the old URL to the new one
  • Update indexed URLs over time
  • Prevent duplicate content issues
  • Preserve existing search engine visibility

For this reason, 301 redirects are widely used during website migrations and domain changes.

Example

Suppose your website previously operated at:

https://oldsite.com

and has been moved to:

https://newsite.com

A 301 redirect ensures that:

  • Visitors are automatically sent to the new website.
  • Existing bookmarks continue to work.
  • Search engines replace the old URL with the new one in search results.

301 vs. 302 Redirect

Redirect Type Meaning Search Engine Interpretation
301 Permanent Redirect Index the new URL
302 Temporary Redirect Keep the original URL indexed

If the move is permanent, a 301 redirect should be used.

Common Uses

Redirect HTTP to HTTPS

http://yourdomain.com
→
https://yourdomain.com

Redirect Non-WWW to WWW

https://yourdomain.com
→
https://www.yourdomain.com

Redirect an Old Page

https://yourdomain.com/services
→
https://yourdomain.com/web-hosting

Redirect an Entire Domain

https://old-domain.com
→
https://new-domain.com

Summary

A 301 Redirect is a permanent redirect that automatically sends visitors and search engines from an old URL to a new one. It is commonly used during website migrations, domain changes, URL restructuring, and HTTPS implementations. Because search engines treat a 301 redirect as a permanent move, it helps preserve SEO value and ensures that users reach the correct destination without interruption.

Didn't find an answer?

Our support team is here for you 24/7 – write to us and we will help you sort it out.