Technical SEO

301 redirect — moving a URL permanently

A 301 response tells a client that a resource has moved permanently to another URL. Browsers follow the Location header, and search engines can use the redirect as a strong signal about the preferred destination.

Published: Updated: 3 min read
Scheme: 301 Redirect. Old URL - 301 - New URL.

What does a 301 redirect mean?

A 301 response tells a client that a resource has moved permanently to another URL. Browsers follow the Location header, and search engines can use the redirect as a strong signal about the preferred destination. It is appropriate for a lasting move, not every temporary promotion. Redirects should serve users by preserving the meaning of the original address wherever a genuine replacement exists.

How to choose a target?

Assign the old page to its closest equivalent: next product model, new guide location, or merged article. Moving hundreds of deleted tabs to the home page usually does not meet the recipient's expectations and can lead to a soft 404. If there is no useful replacement, a real page-missing message may be more correct than a fake replacement.

Migration example

The guide changes the path from /blog/audit-basics to /poradniki/seo-audit. The old address should lead to a single redirect directly to the target HTTPS. Links in menus, other articles and the XML sitemap need to be updated to the new location. Leaving all links to the old version forces an additional request and makes it difficult to recognize the correct structure.

How to implement and test?

Before changing, write down important addresses, entry pages and external links. Prepare a specific map and check response codes without relying solely on the browser's final view. Keep the parameters you need. Do not allow the user to be redirected to any external domain. The target should return valid content and have a compatible canonical.

Chains, loops and forms

The chain requires several passes and the loop does not lead to a working page. These are often caused by overlapping HTTPS, domain, and slash rules. Keep the path short. For POST and API requests, the behavior of the method is important: a rule suitable for a regular GET page does not have to be valid for form submission. Select the code for a specific action.

How to assess migration?

Check requests to old addresses, new page indexing, traffic and conversion errors. Don't remove useful redirects immediately after a new page appears on Google. Analyze logs and missing mappings. Traffic fluctuations alone do not prove rerouting failure; first verify the actual response path, content compliance and completeness of links.

Example of a redirection map after changing the structure

If /old-service/ becomes /services/specific-service/, map this relationship and check it with a direct request. The new address should return the correct content and its own canonical. Update links in menus, articles and sitemaps so they don't constantly link to the old URL. In the case of several old versions, direct each one directly to the target, instead of leaving the chain A → B → C created after subsequent rebuilds.

Also test variant with parameter, trailing slash and language version. A rule that is too general may remove important parameters or redirect the correct address back to itself. For requests that change data, take into account the semantics of the HTTP method; the form's endpoint should not accidentally turn POST into GET. Code 301 is part of the response contract, not a universal fix for every missing resource.

Sources and further reading

Use the primary documentation to check the principles and limitations described in this article.

How we prepare the glossary

These articles combine original editorial work, AI support for editing and translation, and checks against linked primary documentation. Examples are illustrative unless stated otherwise; they do not represent client results. Dates refer to publication and actual content changes.

From knowledge to action

Need help putting this into practice?

Tell us about your website or process. We will define the scope and the next practical step.

Discuss your project