✨ Get 25% OFFon any plan. Use the coupon:

301 redirect: what it is and when to use it

By Tiago CostaUpdated on July 2, 2026

Illustration of a 301 arrow linking an old address to a new valid site, representing the permanent redirect.
Definition

The 301 redirect is the permanent redirect that points an old URL to a new one. In practice, it:

  • takes user and search engine straight to the new address;
  • signals that the change is definitive;
  • passes most of the old URL's authority;
  • is the right way to change URL, domain or structure without losing SEO.

What a 301 redirect is

A 301 redirect is a server instruction that tells browsers and search engines that a page changed address permanently. The number 301 is the HTTP status code reserved for moved permanently: when someone visits the old URL, they are taken automatically to the new one, without seeing any error page.

Imagine you moved house and left the post office an order to forward all your mail to the new address. The 301 does exactly that on the web: it makes sure whoever looked for the content in the old place reaches the new one, and it tells Google to update its records.

That is the big difference from simply deleting a page. Without the redirect, the old URL would respond with a 404 error, frustrating the visitor and wasting all the reputation that address had built up.

301 redirect vs 302: what is the difference

Both redirect, but they communicate opposite intentions to the search engine. Compare:

CodeMessageSEO effect
301Permanent change of address.Passes authority to the new URL, which starts to rank.
302Temporary change, the old one will return.Keeps the old URL in the index, without transferring strength for good.

The wrong choice is expensive. Using a 302 redirect when the change is definitive makes Google keep betting on the old URL and delays consolidating the new one. The rule is simple: if you do not intend to go back to the old address, use 301.

Infographic of how a 301 redirect works, showing user, Google and authority going from the old URL to the new one.
How a 301 redirect works: the path of the user and the authority from the old URL to the new one.

When to use a 301 redirect

The 301 is the standard tool whenever content changes address for good. The most common cases:

  • Domain change: when migrating from site.com to newsite.com, redirect each page to its equivalent.
  • Migration to HTTPS: point all http versions to their matching https ones.
  • URL or slug change: when you rewrite an article's address, take the old one to the new.
  • Content consolidation: when merging two similar pages, redirect the weaker one to the stronger.
  • Standardizing variations: unify versions with and without www, or with and without a trailing slash, into a single address.

When the duplication is identical content that needs to stay accessible, the path is not the 301, but the canonical URL, which tells Google the preferred version without taking the others down.

How to set up a 301 redirect

The setup depends on your technology, but the logic is always to point the old address to the new one. The most used paths:

  • Apache (.htaccess): use Redirect 301 /old-page https://site.com/new-page or RewriteRule rules.
  • Nginx: configure return 301 https://site.com/new-page; in the server block.
  • WordPress: plugins like Redirection or the SEO features let you create a 301 from the dashboard, without touching code.
  • Hosts and CMSs: most offer a ready made redirects panel.

After setting it up, test each redirect with a header inspection tool to confirm the returned code is really 301 (and not 302) and that the destination is correct. Redirects are so common they become a silent risk: a study by Ahrefs across more than a million domains found 3xx redirects present on 95.2% of the sites analyzed, which reinforces the importance of keeping them organized.

301 redirect and SEO: what happens to authority

The great SEO advantage of the 301 is preserving the page's reputation. The authority accumulated by a URL, often called link juice, is transferred to the new address, which inherits much of the link history and ranking of the old one.

For a long time people said the 301 leaked around 15% of that strength. Google itself has publicly stated that 3xx redirects no longer lose PageRank, so, in practice, a well done 301 preserves almost all the authority. What still drains value is excess: a redirect chain, where URL A leads to B, which leads to C, makes the search engine jump several steps, slows loading and can dilute signals.

That is why the ideal is always to redirect straight to the final destination, in a single hop, and to point to the most equivalent page possible, not to the homepage. The more relevant the destination, the more of the original value Google considers applicable.

Illustration comparing a redirect chain, which loses authority, with a direct 301 redirect, which preserves it.

Common mistakes when using a 301 redirect

A poorly planned 301 hurts instead of helping. The most frequent slips:

  • Redirecting everything to the homepage: sending different pages to the home confuses the user and Google usually treats it as a soft 404.
  • Creating long chains: several redirects in a row waste crawling and speed. Always point to the final destination.
  • Using 302 by mistake: a temporary redirect in place of a permanent one keeps the new URL out of the index.
  • Forgetting internal links: even with the 301 live, update your own site's links to point straight to the new address.
  • Redirecting to irrelevant content: taking the user to a page unrelated to what they searched for raises the bounce rate.

Used well, 301s are the backbone of any safe migration. Used badly, they become a silent source of lost traffic.

FAQ

Frequently asked questions

What is a 301 redirect?

It is the permanent redirect that sends user and search engine from an old URL to a new one, signaling that the change is definitive. Besides avoiding error pages, it passes most of the old address's authority to the new one.

What is the 301 code?

The 301 is an HTTP status code that means moved permanently. When a server responds with 301, it tells the browser and Google that the address changed for good and that they should follow to the new URL indicated.

What does the HTTP 301 code mean?

It means the resource was moved permanently to another address. It is the signal that guides search engines to transfer the ranking and authority of the old URL to the new one, updating the index over time.

What is the difference between a 301 and a 302 redirect?

The 301 is permanent and transfers authority to the new URL; the 302 is temporary and keeps the old URL in the index, since it indicates it will return. For definitive changes, the right one is the 301; the 302 only fits when the change is temporary.

Does a 301 redirect hurt SEO?

On the contrary, it protects SEO when a URL changes address, because it preserves almost all the accumulated authority. What hurts is using it badly: redirecting everything to the homepage, creating long chains or pointing to irrelevant pages.

Migrate and grow without losing positions on Google

Automarticles creates, publishes and maintains your blog articles with a healthy URL structure, so you can change whatever you need without losing authority or traffic.

Start free trial
Keep learning

Related concepts

302 redirectA 302 redirect is an HTTP status code that tells the browser and search engines that a page has been moved temporarily to another URL. Unlike the 301, which is permanent, the 302 signals that the original address will come back, so Google keeps the old URL indexed and does not pass authority permanently to the new address. It is the detour of choice for passing situations, such as tests, maintenance and promotions.Canonical URLA canonical URL is the preferred version of a page when several addresses hold identical or very similar content. It is signaled to the search engine by a canonical tag (rel=canonical) in the HTML or by other signals, telling it which URL should be treated as the original, the one that appears in search and concentrates the authority of the links. It is the main tool for solving duplicate content without deleting pages or harming the user experience.404 errorThe 404 error is the HTTP status code that a server returns when the requested page is not found at the accessed address. It signals that the URL does not exist (or no longer exists), whether because it was mistyped, removed or had its address changed. On its own, a 404 is normal web behavior, but in excess and on important pages it hurts user experience and SEO.Redirect chainA redirect chain is a sequence in which one URL redirects to another, which in turn redirects to a third, and so on, before reaching the final destination. Each extra hop adds load time, spends crawl budget and dilutes the authority passed by links. Ideally any URL should redirect only once, straight to the final address, with no intermediate steps.