
URL redirects are a crucial aspect of website maintenance, and they can significantly impact your website's visibility in search engine results. A well-implemented redirect can ensure that users and search engines are directed to the correct page, even if the URL has changed.
According to our analysis, 75% of websites have at least one redirect. This highlights the importance of regular redirect checks to avoid any potential issues.
Redirects can be used to fix broken links, merge duplicate content, and even to redirect users to a new website. In fact, a single redirect can be used to redirect multiple URLs to a single target page.
Redirects can be implemented using various methods, including 301 and 302 redirects, as well as JavaScript and meta refresh redirects.
Suggestion: Free Website Redirect
What Are URL Redirects?
URL redirects are a crucial aspect of website maintenance and SEO. They allow you to edit a URL once it's already live, ensuring visitors and search bots can easily find the new address.
A 301 redirect is a permanent redirect that passes full link equity to the redirect target, making it the most common type of permanent redirect. This is ideal for long-term URL changes or when consolidating pages.
You can use redirects to move from HTTP to HTTPS for security, setting up redirects from each HTTP page to its HTTPS counterpart. This keeps all traffic on the secure site, improving user trust and SEO.
A 301 redirect directs users and search engines to the updated URL, as seen in the example of renaming yourstore.com/sale-items to yourstore.com/discounts. This type of redirect is perfect for long-term URL changes.
Redirects are also necessary when rebranding or switching to a new domain, as seen in the example of oldsite.com changing to newsite.com. Setting up redirects from old URLs to the new one ensures that users who visit old URLs are automatically forwarded to the corresponding pages on the new domain.
If you're unsure whether a redirect is permanent or temporary, Google determines this based on the redirect's intent. If it's determined to be permanent, the new URL will begin to appear in search results.
You can use 302 redirects when the URL of a resource is changed temporarily, as seen in the example of redirecting mysite.com/service to mysite.com/service-temporary while the original page is being updated. This type of redirect keeps the original URL active.
Curious to learn more? Check out: Yoast Seo Tutorial
Why Are URL Redirects Important?
URL redirects are crucial for maintaining a website's integrity and user experience. They ensure that users and search engines are directed to the correct page when a URL is changed or a page is moved, avoiding 404 errors and poor user experience.
Redirects improve user experience and boost search engine performance by passing link-authority (PageRank), preventing duplicate issues, transferring ranking authority, and improving user experience. They also increase loading time, sometimes.
Redirects can transfer page authority from the old page to the new one, helping maintain rankings and traffic. According to Google, 301 redirects pass nearly 100% of the link equity, but it's still best practice to limit unnecessary redirects to preserve as much authority as possible.
Here are some key benefits of URL redirects:
- Passed link-authority (PageRank)
- Prevented duplicate issues
- Transfer ranking authority
- Improved user experience
- Increased loading time (sometimes)
Passed Link-Authority (PageRank)
Redirects help preserve link equity, often referred to as “link juice.” This means that link authority from the original page is passed to the new URL, ensuring that any backlinks continue to strengthen the SEO of the new page and help maintain its rankings in search results.
In 2016, Google’s Gary Illyes stated on X (formerly Twitter) that redirects do not impact PageRank, assuring that link equity is preserved when redirects are properly implemented.
A 301 redirect, in particular, passes nearly 100% of the link equity to the new URL. This is a best practice for maintaining rankings and traffic.
Here are the types of redirects that preserve link authority:
- 301 redirects
- Other types of 300 redirects
By using these types of redirects, you can ensure that your website's link equity is preserved and that your rankings and traffic are maintained.
Pages Indexing Section
The Pages Indexing Section is a crucial part of understanding how URL redirects work. It's where you can see which URLs have been redirected and removed from Google's index.
To access this section, go to Indexing > Pages in GSC. Look for the Page with Redirect report to view which URLs have been redirected and de-indexed by Google. This report is essential for verifying that all redirected pages are marked as such, confirming Google is aware of and has processed these redirects.
Explore further: Google Seo Consultant
You can also use this feature to see if Google has indexed a 302 redirect, which signals to the search engine that a URL has been removed temporarily. Google usually keeps the old URL in its index rather than replacing it with the new one, but in some cases, it might treat a 302 redirect as a 301 redirect if it thinks that the redirection is intended to be permanent.
Here's a quick rundown of what you can expect to see in the Pages Indexing Section:
Section
Redirects are crucial for maintaining a website's integrity and user experience. They ensure that users and search engines are directed to the correct page when a URL is changed or a page is moved.
Redirects improve user experience and boost search engine performance. They help preserve link equity and ranking signals, which is vital for a website's overall SEO performance.
A single 301 redirect is preferred over a redirect chain, which can slow down page loading and negatively impact rankings and user experience. Reducing the chain to a single 301 redirect helps retain link authority and improves page speed.
Suggestion: Next Js Redirects
Redirects can transfer page authority from the old page to the new one, helping maintain rankings and traffic. Google has said that 301 redirects pass nearly 100% of the link equity, but it's still best practice to limit unnecessary redirects to preserve as much authority as possible.
Here are some common redirect types:
Redirects can also prevent duplicate issues, transfer ranking authority, and improve user experience. They can even increase loading time, although this is not always desirable.
DNS-Level
DNS-level redirects are a powerful tool for website migrations and HTTPS implementation. They can be used to specify the status code for a redirect, such as a 301 or 302.
Some hosts may allow you to specify the status code for a redirect at the DNS level. This can be particularly useful during website migrations.
Redirects at this level are often used for website migrations. Some hosts may let you specify the status code for a redirect such as a 301 or 302.
Check this out: Wix Website Seo
Some providers are even allowing HTTPS versions of pages to be redirected. Technically, HTTPS doesn’t exist at this level and this wasn’t an option in the past, but some providers have figured out a way to make this work.
You can check with your domain registrar or CDN to see if they offer this feature.
Here are some providers that offer DNS-level redirects:
Please note that this is not an exhaustive list and you should check with your specific provider for their DNS-level redirect options.
CDN-Level
CDN-Level redirects offer flexibility and control over the redirect process. Cloudflare, for instance, provides various options for implementing redirects.
You can do single or bulk redirects, which can be convenient for small-scale changes. Specific redirect rules are also available on Cloudflare.
Writing a page rule with a redirect is another option, allowing you to target specific URLs or paths. Using workers and key-value pairs to implement redirects is also possible.
I prefer CDN-Level redirects over server-level redirects, but it ultimately depends on what's easiest for you to implement.
Types of URL Redirects
301 redirects are recommended for SEO, indicating a permanent move, while 302 redirects are used for temporary changes, signaling to search engines that the change is not permanent. This allows the old URL to remain indexed.
A 301 redirect passes full link equity to the redirect target, making it the best method for implementing redirects on a website. It's a strong hint for canonicalization, consolidating link signals at the new URL.
Here are the main types of URL redirects:
Meta Refresh Redirects are executed on the client side and not recommended for SEO, making them less desirable for search engine optimization.
Types of URL Redirects
A 301 redirect is a permanent redirect that passes full link equity (ranking power) to the redirect target. It's the best method for implementing redirects on a website.
301 redirects are used when you want to send users to a different page permanently, without losing the original URL in search results. This type of redirect signals to search engines that the change is permanent, prompting them to update their index to the new URL.
A 302 redirect, on the other hand, is a temporary redirect that signals to search engines that the change is not permanent, allowing the old URL to remain indexed. This type of redirect is used when you want to send users to a different page for a limited time.
Meta Refresh Redirects are executed on the client side and are not recommended for SEO. They're not as effective as 301 or 302 redirects in passing link equity to the new URL.
Here's a summary of the different types of redirects:
Temporary redirects, like 302s, were once thought to not pass PageRank effectively, but Google has clarified that all 300-series redirects now pass PageRank and link equity similarly to 301 redirects. However, the key difference lies in intent: a 302 redirect signals to search engines that the redirect is temporary, so they keep the original URL in their index and ranking system.
Client-Side
Client-Side Redirects are a thing, and they're not always the best choice. They're fired by the user's browser, and a user may see a page temporarily before the redirect happens.
You generally shouldn't do redirects on the client-side, unless that is your only option. This is because client-side redirects can be frustrating for users.
There are a few types of client-side redirects to know about. Here are a few examples:
- Meta Refresh Redirects: These are executed on the client side and not recommended for SEO.
- JavaScript Redirects: These are also fired on the client side and should be used sparingly.
How to Implement URL Redirects
Implementing URL redirects is a crucial aspect of SEO, and it's essential to do it correctly to avoid losing search engine rankings. A 301 redirect is the most common and recommended type of redirect, as it signals to search engines that the page has moved permanently.
To set up a 301 redirect, you can use the header() function in PHP, as shown in Example 10. Alternatively, you can use Apache mod_rewrite in your .htaccess file, as demonstrated in Example 8. This will allow you to rewrite URLs and redirect traffic to different pages or domains.
For more complex redirects, consider using Apache mod_rewrite or NGINX rewrite rules, as outlined in Examples 8 and 6 respectively. These tools allow you to create both permanent and temporary redirects on the server side.
Server-Level
Server-level redirects are a crucial aspect of implementing URL redirects. These redirects happen on your server, and how you implement them will vary depending on your website host and server environment or script language used for the backend.
You can implement server-level redirects using various methods, including Apache, Nginx, Cloudflare Server, LiteSpeed, Microsoft-IIS, and Node.js. Most WordPress installs run on Apache, and plugins used for redirecting will edit a website's .htaccess file, which is located in the website's root directory.
To create a redirect in .htaccess from one page to another, you would add:
You can also redirect with different languages, such as PHP. Here's what that would look like:
In many common systems, you can just put in a redirect and it will fire automatically. However, some systems work as error catchers, and you can put in a redirect that won't fire until you delete the old page.
Here's a list of common server environments and how to implement redirects in each:
- Apache: Consult the Apache .htaccess Tutorial, the Apache URL Rewriting Guide, and the Apache mod_alias documentation.
- NGINX: Read about Creating NGINX Rewrite Rules on the NGINX blog.
- LiteSpeed, Microsoft-IIS, and Node.js: Check with your server manager or hoster, or search for guides on your favorite search engine.
Html
Working with HTML, you can implement a JavaScript redirect by adding a script tag to your HTML file.
In this tag, you'd write the JavaScript code that handles the redirect, which can be triggered by a button click or other user interaction.
A JavaScript redirect might look like this in the HTML:
This code is typically added to the head or body of the HTML document, depending on the specific requirements of your project.
Curious to learn more? Check out: Html Microdata Seo
JavaScript
JavaScript redirects are a method of sending users to another URL, but they're not ideal for SEO. This is because search engine crawlers can struggle with JavaScript execution, and there's no guarantee of Google indexing the redirection properly.
Google explicitly advises against relying on JavaScript redirects, as they can fail if there's any disruption, such as JavaScript being disabled or an error in loading.
JavaScript redirects can be useful in specific scenarios, like user interaction or device targeting. For example, you can redirect users to a login-protected page after they log in or detect the user's device and redirect mobile users to a mobile-optimized page.
Broaden your view: Mobile Seo Audit
Here are some scenarios where JavaScript redirects are useful:
- User Interaction: Redirecting users based on actions, like forwarding them to a login-protected page after they log in.
- Device Targeting: Detecting the user’s device and redirecting mobile users to a mobile-optimized page.
JavaScript redirects use client-side scripting to send users to another URL, but they should be used sparingly, especially for SEO-sensitive redirects. A 301 server-side redirect is the preferred method for permanent URL changes.
Note that JavaScript redirects can be implemented in various ways, such as in the config file or in the router, as seen in Next.js. However, it's essential to consider the potential issues with rendering and indexing.
A unique perspective: Webflow 301 Redirects
Determining System Requirements
You may have multiple systems where redirects can be inputted, making it complicated to figure out which one is actually firing a redirect.
In an enterprise environment, you can use the information in the HTTP headers to help identify what system may have fired a redirect.
The X-redirected-by header tag can be a useful indicator, as seen in our blog where we use a plugin called Redirection that adds this header tag.
Our SEO Toolbar is another option for a quick header check while you're browsing, providing a convenient way to inspect HTTP headers.
Best Practices for URL Redirects
Redirecting URLs is a crucial aspect of SEO, and it's essential to do it correctly to avoid frustrating users and search engines. A 301 redirect is the preferred method for both users and search engines, as it indicates that the page has moved permanently and allows search engines to carry any link weighting from the original page to the new URL.
Use a 301 redirect for permanent changes, such as moving a page from one URL to another, to preserve SEO value and ensure a seamless user experience. This process can take some time, especially if search engine spiders rarely visit the given web page, or if the new URL doesn't properly resolve.
Temporary redirects, on the other hand, are used for temporary changes, such as A/B split-testing or running a promotion. However, they can be a weak hint for canonicalization, and most of the time, signals consolidate to the original page that was redirected.
To manage redirects effectively, follow these best practices:
- Redirect outdated content to a fresh one
- Redirect HTTP to HTTPS
- Redirect similar or identical pages
- Avoid redirect chains and loops
- Avoid broken redirects
- Redirect 404 pages
- Switch links pointing redirect URLs to new pages
- Don't redirect all URLs to the homepage
- Remove redirected URLs from the sitemap
- Keep redirects for at least 1 year
Here's a summary of the types of redirects:
Remember, it's essential to keep redirects active for at least one year to allow signals to permanently pass. If you don't believe it, test it – it seems to be true!
Troubleshooting URL Redirects
Troubleshooting URL Redirects can be a challenge, but with the right tools and knowledge, you can fix issues in no time.
To check if a URL redirect is working, use the URL Inspection Tool in Google Search Console. Simply enter the old redirected URL, and check if it shows "Redirected" in the results. If it does, it means Google is aware of the redirect.
To avoid redirect loops, crawl your site with a tool like Ahrefs' Site Audit. Go to the Redirects report, click the Issues tab, and look for the "Redirect loop" error. This will help you identify and fix the issue.
It's also essential to keep redirects in place for at least a year after content has been moved or updated, as advised by Google's Search Advocate, John Mueller. This allows Google's systems to record the change and ensures the redirect is recognized.
Here are some common redirect issues to watch out for:
- Redirect chains: These occur when a URL redirects to another URL, which then redirects to another, and so on.
- Temporary redirects: These can cause issues with crawling and indexing, and should be avoided.
- Meta refreshes: These can also cause problems with crawling and indexing, and should be avoided.
- Redirect loops: These occur when a URL redirects to itself, or when a URL in a redirect chain redirects back to a URL earlier in the chain.
By being aware of these common issues and using the right tools, you can troubleshoot URL redirects and ensure your site is running smoothly.
Troubleshooting
If you're not sure how Google is treating one of your temporary redirects, paste the redirected URL into Search Console's URL Inspection tool. If it shows the “URL is not on Google” warning, Google must be treating the redirect as permanent.
Broken redirects occur when a URL redirect leads to an invalid or non-existent page, resulting in a dead end for users. This can create frustration and a poor user experience, as well as harm your SEO rankings.
It's essential to ensure that all redirects are working properly and direct visitors to valid, relevant pages. Regularly monitor your redirects using tools like Google Search Console and Screaming Frog to identify and fix any issues.
To troubleshoot redirects, start by checking if the old URL is still indexed in Google. You can do this by using the URL Inspection Tool in Google Search Console. If the old URL is still indexed, it may be a sign that the redirect is not working as expected.
Soft 404s can also occur when redirects are not set up correctly. This happens when a webpage is deleted and the URL is redirected to the homepage, but the two pages are not similar in content. This can be reported as a “soft 404” in Google Search Console.
Don't forget to remove redirected URLs from your XML sitemap once they've been redirected. This will prevent search engines from crawling outdated URLs and improve indexing efficiency.
Here are some common issues to watch out for when troubleshooting redirects:
- Broken redirects
- Soft 404s
- Redirect loops or chains
- Expired certificates
To prevent these issues, make sure to:
- Regularly monitor your redirects
- Use the URL Inspection Tool in Google Search Console
- Remove redirected URLs from your XML sitemap
- Keep redirects in place for at least one year
- Update internal links to point to the new pages instead of relying on redirects
Avoid Loops
Redirect loops are infinite loops of redirects that occur when a URL redirects to itself or when a URL in a redirect chain redirects back to a URL earlier in the chain. They're problematic for three reasons: they cut off access to an intended resource, "trap" crawlers and waste crawl budget, and waste server resources.
Redirect loops are more serious than chains because they prevent both users and search engines from reaching the final content. A simple way to find redirect loops is to crawl your site with a tool like Ahrefs' Site Audit.
To fix a redirect loop, you'll need to identify the last URL in the chain before the loop. If it's the intended final destination, remove the redirect from the final URL and ensure the resource is accessible and returns a 200 status code. If not, change the looping redirect to the intended final destination.
Here are the steps to fix a redirect loop:
- Crawl your site with Site Audit
- Go to the Redirects report
- Click the Issues tab
- Look for the “Redirect loop” error
- Click the error and click “View affected URLs”
In both cases, it's a good practice to swap out any internal links to remaining redirects for direct links to the final URL.
HSTS
HSTS is a security feature that helps protect your website from being accessed over non-secure connections. It does this by instructing browsers to redirect HTTP requests to HTTPS.
Implementing HSTS on your server involves setting the Strict-Transport-Security header. This header tells browsers to only access your site over secure connections and to redirect any HTTP requests to HTTPS.
By implementing HSTS, you're essentially telling browsers to follow the rules and only access your site securely. Bots won't see this redirect, so it's mainly a browser-side solution.
To take it a step further, consider submitting your site to the HSTS preload list. This enables HSTS for everyone trying to visit your website, even if they haven't visited it before.
Tools for Evaluating URL Redirects
To evaluate URL redirects for SEO, you can use a variety of tools, each with its own strengths. Google Search Console is a great place to start, as it allows you to check if old redirected URLs are still indexed and if the new URL has been indexed.
Google's URL Inspection Tool is a must-use for this purpose. Simply log into your Google Search Console account, navigate to the URL Inspection Tool, and enter the old redirected URL to check its indexing status. If it shows "Redirected", it indicates that Google is aware of the redirect.
Screaming Frog is another excellent tool for auditing redirects and identifying potential issues. To use it, start a crawl of your website, then filter for redirects by going to the Response Codes tab and selecting Redirection (3xx). This will list each redirected URL, its final destination, and the type of redirect.
Mangools SERPWatcher is also a useful tool for monitoring keyword rankings and assessing how redirects have impacted your site's SEO. You can use it to evaluate redirects by checking if old URLs are still indexed and if new URLs have been indexed.
Here are some key things to look for when evaluating redirects:
* Redirect TypeDescription301Permanent redirect, passes SEO value302Temporary redirect, does not pass SEO value
By using these tools and checking for these key factors, you can ensure that your URL redirects are correctly implemented and maintaining your SEO value.
Common Issues with URL Redirects
Critical redirect issues can be uncovered using Moz Pro's Site Crawl feature, which reveals urgent problems like redirect chains, temporary redirects, and meta refreshes.
Moz Pro's 30-day free trial can help you identify and fix these issues quickly.
Domain redirects, especially 301 redirects, can be beneficial for SEO when implemented correctly, but improper implementation can lead to significant drawbacks.
Redundant or excessive redirects can cause problems, so it's essential to plan and execute redirects strategically.
Don't All URLs
Redirecting multiple pages to your homepage can frustrate users who are looking for specific content and may hurt your site's relevance in search engines. This is especially true if users are trying to find specific information or products.
Instead, redirect each page to the most relevant page possible, ensuring users find what they're looking for and maintaining your site's SEO value. This approach is recommended in example 3.
Here are some reasons why you shouldn't redirect all URLs to the homepage:
- Users will be frustrated if they can't find what they're looking for
- Your site's relevance in search engines may be hurt
- You'll lose link equity and potentially hurt your SEO
Consider the following example: if you have a blog post about "summer vacation ideas" and you redirect it to your homepage, users who are looking for that specific information will be disappointed. It's better to redirect it to a more relevant page, such as a "travel" section or a "summer activities" page.
In general, it's best to redirect URLs in a way that makes sense for your users and your site's structure. By doing so, you'll improve user experience and maintain your site's SEO value.
Security
Server-side redirects are the preferred method for SEO, but they also have a security advantage. They allow you to control the redirect process, which is safer than relying on meta refreshes.
If you have access to your server's configuration, you can use server-side redirects, which are the safest method for redirecting URLs. This is because you have more control over the redirect process.
The key differences between various status codes are important to understand. For example, a 301 (moved permanently) redirect indicates that the resource has permanently moved to the new URL, and the original request method can be changed.
Here are the different types of permanent redirects:
- 301 (moved permanently): A redirect that returns a HTTP status code of “301” indicates that the resource found at the original URL has permanently moved to the new one. It will not revert to the old URL and it allows the original request method to change from POST to GET.
- 308 (permanent redirect): A 308 server response code is similar to 301 in that it indicates that the resource found at the original URL has permanently moved to the new one. However, the key difference between the 308 and the 301 is that it recommends maintaining the original request method of POST or GET.
Temporary redirects, on the other hand, indicate that the redirect is only temporary and may be removed in the future. A 302 (temporarily displaced) redirect, for example, indicates that the move from one URL to another is only temporary.
Alternatives
Sometimes a redirect just isn't possible. This tends to be when there is a limit to what can be accomplished through a CMS or with internal resources.
In these instances, alternatives could be considered. However, they may not achieve exactly what you would want from a redirect.
One alternative is to use a canonical tag, which can help search engines understand what the preferred version of a URL is.
A canonical tag can be especially useful when you have multiple versions of the same page, such as with or without www.
Redirects are often the best solution, but sometimes they're not feasible.
Featured Images: pexels.com


