What is a 301 redirect?
You use a 301 redirect when a web page moves permanently from one address to another. If someone tries to visit the old URL, the server automatically sends them on to the new one. At the same time, the server returns the HTTP status code 301, which means "Moved Permanently". The status code tells search engines such as Google that the content now lives somewhere new, and that all link equity and authority should follow it. It also tells the browser that it should no longer use the old address.
Think of a 301 redirect as a digital change-of-address sign. Your visitors never land on dead pages, and search engines quickly spot the changes and update their index. In practice, you keep your traffic and the SEO value you've built up when you change structure, switch domain or move content.
How do you use a 301 redirect?
Use a 301 redirect whenever you move a page permanently and want to keep your visitors and your search engine rankings. You set it up directly on the server. If you use Apache, this is typically done in the .htaccess file. If you use Nginx, you define rules there. When the redirect is set up correctly, it sends the user on instantly. At the same time, search engines are told to replace the old URL.
For larger changes such as a domain change, you can plan the redirect structure in advance. That way, all relevant URLs point to the most appropriate new pages. This often requires development, SEO and strategy to work together, because errors in the setup can cost traffic or cause technical loops. So use 301 redirects with a clear plan and an understanding of how they affect your entire digital ecosystem.
Why you should use a 301 redirect
A 301 redirect keeps your site visible in search engines and gives your visitors a stable experience. If someone clicks an old link, they land on the right page and never see a 404 error. You also keep the signals search engines use to judge a page's authority. If you handle redirects incorrectly in your SEO and digital strategy work, you risk valuable pages losing their rankings and link equity.
A 301 redirect helps you with many kinds of changes, such as a domain change, moving from HTTP to HTTPS and merging pages. If you change the structure as part of your branding and web design work, you may also need to send visitors on to new URLs. Without a permanent redirect, you lose continuity in both the user journey and search engine data. If something needs to move for good and you want to keep all its value, 301 is the obvious choice.
What types and variants are there?
A 301 redirect belongs to a wider group of 3xx status codes. They all redirect, and each code does it in its own way. The most important difference is whether the redirect is temporary or permanent. When you make changes, choose the type based on the purpose.
- 301 redirect: Signals a permanent move. It transfers SEO value and link equity from the old page to the new one.
- 302 redirect: Temporary move. You use it when the content has only been moved for a period, e.g. for tests or temporary landing pages.
- Other 3xx codes: Codes such as 303 (See Other) and 307 (Temporary Redirect) also exist. You use them less often in classic web SEO.
Only choose 301 when you're completely sure the move is permanent. Google and other search engines read 301 as a definitive signal, so never use it for experiments.
How do you use a 301 redirect in practice?
You set up a 301 redirect directly in the server configuration or in your CMS, depending on how your website is set up. Test all redirects once they're in place. That way, you avoid chains and loops where several redirects lead on one after another. Chains make the site slower and can harm indexing. You can test your redirects with various online tools or in Google Search Console and check that everything points to the right place.
For example:
Redirect 301 /gammel-side/ https://nytsite.dk/ny-side/
This line automatically sends all visits to the old page on to the new URL. Follow the traffic in Search Console and Analytics when you want to measure the effect. Then you can see how your redirects affect your visitors and your rankings. In your SEO work, you can also combine the redirect structure with technical optimisation and content adjustments. That way, you keep as much visibility as possible after a change.
What should you watch out for?
First and foremost, avoid unnecessary redirect chains. Each extra hop adds waiting time, which can cost both user experience and SEO value. Never use 301 redirects for temporary tests either, because search engines quickly register them as permanent moves. Let each old URL point directly to the most relevant new page. The homepage is rarely the right target.
Finally, document all redirects when you make larger changes to the site. That makes it easier to find and fix errors later. When you work with web design, content and SEO together, all parts of the website fit together and work effectively after the move. A well-planned strategy for 301 redirects gives you a technically solid foundation for your digital presence, and you keep both traffic and historical value.