IT Glossary
What is a 301 redirect (Moved Permanently) and when to use it
A 301 redirect is the HTTP response by which a server announces that a page has moved permanently; the browser and Googlebot go to the new address automatically, and Google treats it as the address that replaces the old one.
- 7
- sections
- 5
- questions answered
A 301 redirect (in the HTTP standard, “301 Moved Permanently”, RFC 9110, section 15.4.2) is the response by which a server announces that the requested page has permanently received a new address, which it sends in the Location header, and the browser and Googlebot open that one automatically. Google treats 301 and 308 as permanent redirects and uses them as a strong signal that the new address should be the canonical one, meaning the one shown in results; 302 and 307 are temporary and leave the old address in results.
For a business, a 301 matters at concrete moments: a redesign with a new page structure, a change of domain, products withdrawn from the catalog, the move from http to https or from www to the non-www form. Like a sign on the door of a relocated shop, the redirect takes the visitor to the new address without them noticing. Without it, old addresses answer 404, and according to Google, indexed URLs that return a 4xx error are removed from the index and stop being used over time; visitors from bookmarks, old emails and other sites land on an error page.
Why it matters for your business
Google positions do not start from zero
301 redirects tell Google the new address replaces the old one, and the accumulated signals pass to it — organic traffic does not reset.
Old links stay valuable
Articles, partners and email signatures pointing at old addresses keep sending visitors, and their signals reach the new address.
No dead ends for visitors
Customers arriving from bookmarks or old emails reach the current content instead of an error page that sends them straight to a competitor.
How a 301 redirect works
The browser requests the old address, and the server does not send the page but answers “301 Moved Permanently” and a Location header with the new address, for example “Location: https://example.com/new-page/”. The browser then requests the new address. Google ignores the content of the redirecting address and processes the content of the target.
According to RFC 9110, a 301 response may be kept in the browser’s memory (“heuristically cacheable”). In practice, a wrong 301 can keep sending visitors to the wrong place even after you fix it on the server, so check the target address before you set it.
301, 302, 307 or 308: what is the difference
301 and 308 are permanent; 302 and 307 are temporary (RFC 9110, sections 15.4.2, 15.4.3, 15.4.8 and 15.4.9). The technical difference is the request method: after a 301 or 302, a browser may turn a POST (a form submission) into a GET, “for historical reasons”. With 307 and 308 the method is kept; the RFC points to 308 as the permanent option when the change is undesired.
For Google, 308 is equivalent to 301 and 307 to 302. A permanent redirect makes the target appear in results; a temporary one lets the source page appear. The rule for a business: ordinary pages, 301 (or 308, the same for Google); addresses that receive forms or API calls, 308 or 307; short promotions and maintenance work, 302.
Want an estimate for your project?
Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.
What Google does with a 301 redirect
Google treats a 301 as a strong signal that the target should be processed and a 302 as only a weak one; only permanent redirects (301, 308) count as a signal that the target should be canonical. Googlebot follows up to 10 hops, but chains are best kept at 3 at most and under 5; redirect straight to the final address. Keep redirects “generally at least 1 year”, and for visitors, if possible, indefinitely. Redirecting many old addresses to a single irrelevant page, such as the home page, may be treated as a soft 404.
In Search Console, the old address shows as “Page with redirect” (the old address is not indexed; the target may or may not be, depending on how Google judges it), and broken redirects as “Redirect error”: chain too long, loop, URL too long or an empty URL. The Change of Address tool in Search Console is used only when moving a domain or subdomain, not for the move to https, from www to non-www or for pages moved within the same domain.
When a business needs a 301 redirect
At a redesign, each important old address gets its new counterpart; at a domain change, the whole site moves to the new domain; at the move to https, each http address leads to the https version. A discontinued product goes to the close replacement, and with no replacement, to its category.
A page that is gone with no replacement gets 404 or 410, explained at “404 page”. If both variants must stay visible, you do not redirect but use the canonical URL. The full migration procedure is in the guide on redesigning without losing traffic. In a redesign, the mapping and 301 redirects cost roughly €300–1,500.
How to set up and check a 301 redirect
The redirect is made in the server configuration (Apache: “Redirect permanent” or a mod_rewrite rule with R=301; Nginx: “return 301”), in PHP with the header() function before any output, or from the platform’s settings: online store platforms have a dedicated setting.
Check that the old address answers 301 (or 308) straight to the final address, and the final address answers 200. For one address, Google suggests the URL Inspection tool; for many addresses, a script or the command line.
Frequently asked questions
What is a 301 redirect?
A 301 redirect is an HTTP response in which the server says the requested page has moved permanently to another address. The new address comes in the Location header, and the browser or Googlebot opens it automatically. Unlike a 302, the move is permanent, so Google takes the new address as the canonical one.
Should I use a 301 or a 302 redirect?
Use a 301 for a definitive move and a 302 for a temporary one, such as a short promotion. With a 302, Google keeps showing the old address and does not use the redirect as a canonical signal; the target may still be indexed if other signals support it.
Should I use a 301 or a 308 redirect?
For Google, a 308 is equivalent to a 301, so for ordinary pages you can use either. The difference is the method: a 308 keeps the request method, so a POST stays a POST, while after a 301 a browser may turn it into a GET. Choose 308 for addresses that receive forms or API calls.
How long should I keep 301 redirects?
As long as possible: Google recommends keeping them generally at least a year, and for visitors, if possible, indefinitely, because old bookmarks and external links keep existing. Also update the site’s own internal links to the new addresses, so visitors no longer pass through the redirect.
What should I do with pages for products permanently discontinued?
If a close replacement exists, a 301 to it keeps both the traffic and the chance of a sale. With no replacement, redirect to the product’s category or leave a 404 or 410. Redirecting everything en masse to the homepage is best avoided, since it may be treated as a soft 404.
Let’s talk about your project
Book a free 30-minute call or send us an email. We reply the same working day.
office@northdan.com · +40 750 252 851