What is a 301 redirect and when do you use it?
A 301 redirect is a permanent redirect from an old URL to a new URL. Visitors and search engines are automatically sent to the new destination. Use a 301 redirect when a page has really and permanently moved, and the new page is a good content match. For a temporary move, you usually use a 302 or 307.
In this guide, you will learn when a 301 redirect is and is not the right choice. You will learn how to check redirects, fix errors, and measure a migration. Always start with a URL plan and a backup. One wrong broad rule can make a large part of your website unreachable.
- What is a 301 redirect and when do you use it?
- Why does a 301 redirect affect visibility in Google?
- When do you use a 301 redirect?
- What is the difference between 301, 302, 307 and 308?
- How do you check 301 redirects on your own website?
- How do you improve 301 redirects step by step?
- Frequently asked questions about 301 redirects
What is a 301 redirect and when do you use it?
The number 301 is an HTTP status code. It tells the server to say that the requested URL has been moved permanently to another location. Google sees 301 and 308 as strong signals that the new destination should become the canonical URL.
Use a 301 redirect for a permanent change. Think of a new URL structure, a move to another domain, merging two duplicate pages, or replacing a removed article with a truly equivalent new source.
Do not use a 301 redirect when the change is temporary. For a temporary maintenance page or a short campaign, a 302 or 307 is usually better. Google does not use temporary redirects in the same way as a signal that the new destination should permanently become the canonical version.
A redirect is also not a general solution for every removed page. If there is no relevant replacement, a 404 or 410 can be more honest and clearer. For example, a visitor who opens an old recipe does not benefit from being redirected to a general homepage.
According to Google, server redirects are preferred when you can set them. They are handled directly by the server. JavaScript redirects are an alternative when a server-side solution is not possible, but they are less direct.
Why does a 301 redirect affect visibility in Google?
Google needs to understand that content has a new permanent location. A permanent redirect is a strong canonical signal. After processing, the new URL can replace the old URL in search results.
A redirect also helps existing visitors. Old bookmarks, internal links, and external links will still lead to a working destination. Without a redirect, visitors end up on an error page.
The destination must be relevant. Google warns during migrations that many old URLs all pointing to one irrelevant homepage can be treated as soft 404s. So create a mapping per page or per clear group of similar pages.
Processing takes time. Google has to crawl the old and new URLs again. During a large migration, positions, impressions, and clicks can change temporarily. A 301 redirect does not guarantee that all old rankings will come back exactly as they were.
Combine the redirect with consistent internal links, canonicals, and an updated sitemap. Conflicting signals make processing unnecessarily difficult for Google.
When do you use a 301 redirect?
Use a 301 redirect when you permanently make a URL clearer. For example, if an old folder name disappears or if you fix a spelling mistake in the slug. First, though, think about whether the change is really needed. Changing a working URL without a clear benefit adds extra risk.
Use a 301 when merging overlapping pages too. Choose the best main page, combine the unique and useful content, and send the old URL to that destination.
Permanent redirects are also suitable when moving from HTTP to HTTPS and when choosing between www and non-www. Make sure every old variant goes straight to the final preferred version.
Use a 301 redirect during a domain move. Make a complete mapping in advance of every important old URL to the correct new URL. Keep the old domain name and the related certificates active so the redirects keep working.
Use a permanent redirect after removing a page only when there is a very close replacement. Otherwise, let a real removal without a suitable replacement return a proper error status.
When do you not use a 301 redirect?
Do not use a permanent redirect for temporary maintenance, a product that is briefly out of stock, or a temporary campaign. Choose a temporary status when the old URL will come back later.
Do not use a 301 redirect to force users to another language based on their location. Give visitors a clear language choice and use the correct language markup for search engines.
Do not send all old pages to the homepage. That usually does not help the visitor and can be seen by Google as a soft 404.
Do not use a redirect as a replacement for a canonical when both URLs must remain available to users. A redirect removes the old version from the normal route and sends every visitor onward.
Also do not use a chain of multiple redirects when you can send visitors straight to the final destination. Every extra step slows the route and increases the chance of errors.
What is the difference between 301, 302, 307 and 308?
A 301 and 308 are permanent server redirects. They show that a move is lasting. For Google, both codes are strong signals that the destination should become the canonical URL.
A 302 and 307 are temporary redirects. Google follows these redirects, but does not use them as the same permanent canonical signal. The original URL can therefore remain in search results.
The technical difference between certain status codes also relates to how the request method is handled. For a normal page view, the main choice is whether the move is permanent or temporary. Let a developer test complex forms, API requests, and payment flows.
| Status code | Meaning | Use | SEO signal |
|---|---|---|---|
| 301 | Permanently moved | Definitive move of a URL | Strong canonical signal |
| 302 | Temporarily moved | Short campaign, test, or temporary maintenance | Temporary signal |
| 307 | Temporary redirect | Temporary route where the request method is preserved | Temporary signal |
| 308 | Permanently moved | Definitive route where the request method is preserved | Strong canonical signal |
Choose the status code based on the real situation. Do not use a 302 because you are afraid a 301 is too strong when the move is truly permanent.
How do you check 301 redirects on your own website?
Start with a list of important old and new URLs. Test each old URL with an HTTP checker or crawler. Note the status code, first destination, final destination, and number of steps.
Then open the final page manually. Check whether the topic, language, and search intent match. A redirect that works technically can still be wrong in content.
Also crawl the internal links on your website. Update links that still point to old URLs right away. Visitors and search engines then do not need to follow an unnecessary redirect.
Use URL inspection in Search Console for important examples. Compare the old and new URL, the chosen canonical, and the indexing status. For a domain move, check both properties.
| Check point | How to check it | Solution | Priority |
|---|---|---|---|
| Old URL does not redirect | HTTP check and old URL list | Add a targeted permanent rule | Very high |
| Redirect ends on an error page | Follow the full route | Fix the destination or remove the rule | Very high |
| Many URLs go to the homepage | Compare source and destination topic | Map them to suitable pages or use 404 | Very high |
| Redirect chain has multiple steps | Use a crawler with a redirect report | Send directly to the final destination | High |
| Internal links point to an old URL | Check the internal link report | Update the href to the new URL | High |
| Sitemap contains redirected URLs | Compare the sitemap with the crawl | Include only preferred URLs | Normal |
Which errors most often slow down a migration?
Not making a URL mapping
Without a mapping, a broad destination is quickly chosen. Map every important old page to the best new content. Also note why that destination is suitable.
Thinking about redirects only after launch
Create and test the rules in advance in a test environment. The old URLs must work properly from the very first moment after launch.
Not updating internal links
A redirect catches old references, but your own website should link directly to the new URL. That prevents unnecessary steps.
Letting canonicals and sitemap conflict
Make the new page point to itself as canonical. Include only the new preferred URL in the sitemap and remove the redirected URL.
Removing redirects too quickly
Old links, bookmarks, and crawlers can remain active for a long time. Keep permanent redirects active for as long as possible.
Changing everything at once
A new domain, new design, new content, and new technology all at the same time make errors harder to find. Limit the number of simultaneous changes where possible.
How do you improve 301 redirects step by step?
- Export all important old URLs.
- Crawl the old website and collect the status codes.
- Choose the best relevant new destination for each URL.
- Mark pages without a replacement for a real error status.
- Create permanent redirects on the server.
- Test the status, destination, and content match.
- Remove redirect chains and loops.
- Update internal links, canonicals, and the sitemap.
- Check important URLs in Search Console.
- Monitor errors, crawling, and organic performance.
After the change, also check your XML sitemap. It should contain only the new preferred URLs. Do not include the redirected old addresses anymore.
How do you prevent redirect chains and loops?
A redirect chain happens when URL A goes to URL B and URL B then goes to URL C. Update the first rule so that URL A goes directly to URL C. Also update all internal links that still refer to URL A or URL B.
A redirect loop sends a URL back to itself in the end. The page then becomes unreachable. This often happens because of conflicting broad rules for HTTPS, language versions, hostnames, or variants with and without a slash.
Test the rules in the actual order in which the server runs them. A broad rule for a full folder can be applied before a specific rule for one page.
Crawl the website again after every major change. Filter for 300 series status codes and sort by the number of steps. Also check URLs in canonicals, hreflang references, and the sitemap.
How do you use 301 redirects for a new domain?
Verify the old and new domain in Search Console. If possible, use the same logical site structure. A well-organized move is easier to test and monitor.
First put the new pages online. Check that these pages return a 200 status and are easy to reach. Then create redirects from the old URLs to the matching new URLs.
Update internal links, canonicals, hreflang references, the sitemap, and external profiles. For a full domain move, use the change of address tool when the situation meets Google’s requirements.
Keep the old domain, DNS settings, and security certificate active. Without a working old server, the redirect cannot be served to visitors and search engines.
Monitor both domains. Watch crawl problems, indexing, traffic, and key pages from search results. Expect temporary differences while Google processes the move.
How do you handle removed products and articles?
Will a product return later? Then keep the URL available with useful information or use a suitable temporary status. Do not remove the page every time stock reaches zero.
Is there a real successor with almost the same function? Then a 301 redirect can be useful. Make it clear on the new product page what has changed.
Is there only a broader category? Then judge whether that page reasonably meets the visitor’s expectation. Sending a very specific product page to a general category can be confusing.
Is there no suitable replacement? Then use a proper 404 or 410 with useful navigation for visitors. Do not change the status to 200 when the page only says that something was not found.
How do 301 redirects work with canonicals and backlinks?
A permanent redirect is a strong canonical signal. The new destination page should normally have a self-referencing canonical. Do not let that canonical point back to the old URL.
Existing backlinks to the old URL can still send visitors through the redirect. Where it makes sense, ask important sources to update the link directly. However, a working permanent redirect remains important for links that cannot be changed.
Read more about duplicate content in SEO. A redirect does not guarantee a ranking or a fixed amount of link value.
Use the same destination in internal links, the sitemap, and the canonical. Multiple consistent signals help Google understand your preferred URL.
What measurement shows whether a 301 redirect works?
Technically, the old URL should return a permanent status and end immediately on a working and relevant page. That is the first and most important check.
Look at server logs to see whether Googlebot visits old URLs and receives the redirect. Check in Search Console how the old and new URLs are indexed.
Compare the organic clicks and impressions of the old and new page group together. During processing, the distribution between both URLs can shift.
Also measure referral traffic and visits to error pages. A drop in 404 visits and the retention of important entry pages show that visitors are getting through the move properly.
A broader SEO review helps you assess redirects together with technical setup, content, and site structure.
What does a practical redirect example look like?
A website has two articles about the same topic. The older URL has backlinks, but contains outdated information. The new URL is more detailed and more current. The team first combines all unique and useful information on the new page.
After that, the team creates a 301 redirect from the old URL to the new URL. All internal links are updated directly. The new URL gets a self-referencing canonical and is included in the sitemap.
A crawler confirms that the redirect consists of one step and ends on a page with a 200 status. Search Console is checked in the following weeks. The old redirect remains active for external links and bookmarks.
How do you create a URL mapping for a migration?
First export all old URLs from the website, sitemap, Search Console, analytics data, and server logs. Also add important URLs with backlinks. One data source is rarely complete.
Next to each old URL, add the new destination and a short reason for that choice. Choose the same content, a merged source, or an honest error status. Always manually review broad and automatic choices.
Give priority to pages with traffic, revenue, internal links, and external references. Then test examples from every page type, even when some pages seem less important.
Keep the mapping after launch. The document helps support and development staff understand why a route exists. Add later changes with a date and reason.
How do you test redirects before a launch?
Use a test environment with the same server rules as the live website. Check that old URLs produce one permanent step and end on a working page with status 200.
Test query parameters, uppercase letters, slash variants, HTTP, HTTPS, and different hostnames. Broad rules can unexpectedly conflict with specific rules.
Also check forms, payment flows, downloads, and API requests. A change in request method can matter for some status codes and applications.
Let someone who does not know the project open a sample. That person often spots faster when a content-wise wrong destination still works technically.
How do you check a redirect after launch?
Crawl the full list of old URLs immediately after publishing. Filter for errors, temporary statuses, loops, and routes with more than one step. Fix important and heavily used routes right away.
Then crawl the new website. Look for internal links that still point to old URLs. Check canonicals, hreflang references, and the sitemap for the same old paths.
Review 404 reports and server logs daily during the first period. New errors may come from old campaigns, apps, saved bookmarks, or external links.
Manually check important destinations for content, language, mobile use, and conversion. A migration is only successful when visitors can still reach their goal easily.
How do you handle parameters and tracking codes?
Do not remove tracking codes with a broad redirect when campaigns still need that data. Make sure the final page loads correctly and measures what is necessary for the campaign.
Technical parameters for sorting and filters need a separate URL policy. Decide which versions should be indexable and which canonical relation applies.
Test whether redirect rules accidentally remove necessary data. For forms, ads, and partner links, losing parameters can break important processes and measurements.
Include marketing, SEO, and development in the same mapping. That way, a clean URL is not introduced at the expense of reliable measurement.
How do you document redirect rules for maintenance?
Record the source, destination, status code, reason, owner, and date for every rule. Group temporary and permanent rules separately. Give temporary rules a clear review moment.
Do not remove a rule only because it is old. First check server logs, backlinks, and important bookmarks. Permanent moves can still receive traffic for a long time.
Keep broad rules in version control where possible. Have changes reviewed by a second person. One small character can affect thousands of routes.
Also create an emergency plan that lets you roll back a mistake quickly. Test this plan before a major domain move.
How do you determine the best destination for an old URL?
First read the old page and look at the search queries, traffic, and backlinks. Decide what problem the visitor expects to solve. Then choose the new page that best matches that same intent.
Do not compare only the words in the URL. A new title can be different while the content stays the same. The reverse is also true: a similar slug can lead to a completely different page.
Is there no good destination? Then let the URL return a true 404 or 410. Add search and useful navigation to the error page, but keep the correct error status.
Have a content specialist review important mappings. A developer can test the technical side, but does not always know the difference between two services, articles, or products.
After launch, measure which old URLs are still visited often. Fix content-wise wrong choices quickly and update the documentation right away.
What do you do with temporary campaigns and seasonal pages?
An annual campaign can often keep the same fixed URL. Update the content each year and keep relevant information. That way, you do not have to keep creating new redirect chains.
Will a temporary page really return later? Then do not use a permanent redirect to another page. A temporary status or a useful holding page may be a better fit.
Has a campaign definitely ended and is there a relevant successor? Then make a targeted permanent redirect. Do not automatically send visitors to a random new campaign.
Document when temporary rules need to be reviewed again. Without control, 302 redirects and old campaign routes can remain for years.
Frequently asked questions about 301 redirects
Why is a 301 redirect important for SEO?
A 301 redirect tells Google and visitors that a URL has moved permanently. The new destination becomes a strong canonical signal. However, a specific ranking in Google is never guaranteed.
How do I check a 301 redirect myself?
Use an HTTP checker or crawler. Look at the status code, the number of steps, the final destination, and the content match between the old and new page.
Which tool do I need for this?
For one URL, a simple status check is enough. For many URLs, use a crawler, Search Console, and possibly server logs.
How quickly will I see results?
The technical redirect works immediately once the rule is active. Google must then crawl and process the old and new URLs again. That can take from a few days to several months.
Does a 301 redirect pass backlinks?
A good 301 redirect helps Google and visitors find the new destination. Existing backlinks remain usable because of that. There is just no guarantee that every ranking or a fixed amount of value will be fully preserved.
Can I send all old URLs to the homepage?
No, that is usually not a good solution. Map every old URL to a relevant destination. Use a true 404 or 410 when no suitable replacement exists.
What is the most common mistake?
The most common mistake is sending all old URLs to the homepage. Other common mistakes are redirect chains, wrong destinations, and internal links that are not updated.
When is help from a specialist useful?
For a domain move, thousands of URLs, multilingual structures, complex webshops, or conflicting server rules, an experienced specialist can reduce the risks.
Which SEO action has the highest priority now?
Crawl your website today and export all redirect chains. First choose the chain with the most internal links, backlinks, or visitors. Update the source and the internal links directly to the final relevant destination.
A good 301 redirect is permanent, direct, and content-matched. Use it only when the move is truly permanent. Test every important route as if you were a new visitor, and keep checking the results after publication.
