Redirecting URLs is a fundamental aspect of website management. It helps visitors and search engines find the correct content even when URLs change.
What is a redirect?
A URL redirect is a way to send users and search engines to a different URL than the one they originally requested. Redirects are crucial for maintaining website usability and SEO integrity when URLs change.
More than 35% of homepages have one or more broken links – and the percentages are even higher when you take into account the entire website.
Not handling those redirects properly can cause a drop in search engine rankings and make you look unprofessional.
Why are redirects important?
Redirecting properly is important because it maintains link equity – the value and authority that a webpage passes to another through hyperlinks.
Link equity is an essential factor in SEO, as it helps search engines determine the importance and relevance of a page. Proper redirects ensure that this value is transferred correctly, preserving the SEO benefits of the original URL.
Here are the different types of redirects:
Because each redirect serves a specific purpose, it's important to choose the right type to maintain your website's functionality and SEO performance.
How to set up a redirect
Setting up redirects is essential for maintaining website functionality, especially when content moves or URLs change. This isn’t necessarily a complicated process, but the steps do change depending on what platform you’re using.
Setting up a redirect in cPanel
To set up a redirect in cPanel, follow these steps:
- Login to cPanel: Access your cPanel dashboard by entering your cPanel URL, username, and password.
- Navigate to redirects: Under the "Domains" section, click on "Redirects" to start the process.
- Set up redirect:some text
- Type: Choose between Permanent (301) or Temporary (302) redirect, depending on your needs.
- http://(www.)?: Select the domain you wish to redirect from the dropdown menu.
- Redirects to: Enter the destination URL where you want the traffic to be redirected.
- Optionally, set the "www": Choose whether to redirect with or without "www".
- Add redirect: Click "Add" to finalize and save your redirect settings.
Setting Up a Redirect in WordPress
Setting up redirects in WordPress can be done using plugins or by editing the .htaccess file.
Using a Plugin:
- Install a redirect plugin: Plugins like "Redirection" make setting up redirects straightforward.
- Activate and Configure:some text
- New redirect: Go to Tools > Redirection in your WordPress dashboard.
- Set source and target URL: Enter the source URL (the old URL) and the target URL (the new URL).
- Add redirect: Click "Add Redirect" to save the changes.
Using .htaccess:
- Access .htaccess: Use an FTP client or the cPanel File Manager to locate and edit the .htaccess file in your website’s root directory.
- Add redirect code:
apache
Copy code
Redirect 301 /old-page.html http://www.example.com/new-page.html - Save changes: Save the file and upload it back to your server. Ensure the changes have taken effect by visiting the old URL.
Setting up a redirect in Wix
To set up a redirect in Wix, follow these steps:
- Login to Wix: Access your Wix account and go to your website’s dashboard.
- Go to SEO Tools: Navigate to the "Marketing & SEO" section, then select "SEO Tools".
- Manage 301 Redirects: Click on "URL Redirect Manager" to manage your redirects.
- Add Redirect:some text
- Old URL: Enter the URL you want to redirect.
- New URL: Enter the destination URL where you want the traffic to go.
- Save: Click "Save" to implement the redirect.
When to use redirects
Knowing when and how to use different types of redirects is crucial for maintaining your site's SEO – and here’s a breakdown of each type of redirect and their best use cases.
301 Permanent Redirect
A 301 redirect is your go-to when permanently moving a page to a new URL. This type of redirect is essential for maintaining SEO value, as it passes approximately 90-99% of the link equity (ranking power) to the new URL.
For example, if you’re rebranding or consolidating content, using a 301 redirect ensures that search engines and users are seamlessly guided to the new location, preserving your site’s authority and search rankings.
Here’s a simple example of a 301 Permanent Redirect redirect in the .htaccess file:
Redirect 301 /old-page/ https://www.example.com/new-page/
Key Points:
- SEO Impact: Maintains search engine rankings and link equity.
- Use Case: Permanent URL changes, site migrations, and rebranding.
- Implementation: Server-side configuration, such as editing the .htaccess file for Apache servers.
302 Temporary Redirect
A 302 redirect is used when a page is temporarily moved to a new URL, and you intend to bring it back in the future.
This redirect tells search engines that the move is temporary, so they will continue to index and rank the original URL rather than the new one. This is useful for temporary promotions or maintenance pages.
Here’s a simple example of a 302 Temporary Redirect redirect in the .htaccess file:
Redirect 302 /old-page/ https://www.example.com/new-temporary-page/
Key Points:
- SEO Impact: Does not pass link equity to the new URL.
- Use Case: Temporary changes, A/B testing, and maintenance.
- Implementation: Server-side configuration, such as in the .htaccess file.
303 See Other
The 303 See Other redirect is primarily used in web applications after form submissions. It instructs the client to retrieve a different resource using a GET request.
This is particularly useful for preventing form resubmission issues, which can occur when users refresh the page after submitting a form.
Here’s a simple example of a 303 See Other redirect in the .htaccess file:
RewriteEngine On
RewriteRule ^/old-page/?$ /new-page [R=303,L]
Key Points:
- SEO Impact: Limited, not commonly used for SEO purposes.
- Use Case: Form submissions and preventing duplicate form entries.
- Implementation: Typically implemented server-side in response headers.
307 Temporary Redirect
A 307 redirect is similar to a 302 redirect but complies with HTTP/1.1 standards and preserves the original request method (GET, POST). This is important when you need to maintain the method of the request, such as during form submissions.
Here’s a simple example of a 307 Temporary Redirect redirect:
RewriteEngine On
RewriteRule ^/old-page/?$ /new-temporary-page [R=307,L]
Key Points:
- SEO Impact: Does not pass link equity to the new URL.
- Use Case: Temporary changes with preserved request methods.
- Implementation: Server-side configuration in response headers.
308 Permanent Redirect
The 308 redirect, like the 301, indicates a permanent change but also preserves the request method. This is useful for situations where the request method (GET, POST) needs to be maintained during a permanent move.
Here’s a simple example of a 308 Permanent Redirect redirect:
RewriteEngine On
RewriteRule ^/old-page/?$ /new-page [R=308,L]
Key Points:
- SEO Impact: Maintains search engine rankings and link equity.
- Use Case: Permanent URL changes with preserved request methods.
- Implementation: Server-side configuration in response headers.
JavaScript Redirect
JavaScript redirects are client-side redirects that use JavaScript to navigate to a new URL. These should be used sparingly, as they are not ideal for SEO and may not be executed if the user has JavaScript disabled. They are typically used when server-side redirects are not possible.
Here’s a simple example of a JavaScript redirect in the <head> section of the HTML document:
<!doctype html>
<html>
<head>
<script>
window.location.href = "https://example.com/new-page/";
</script>
</head>
Key Points:
- SEO Impact: Limited, not recommended for important redirects.
- Use Case: Client-side navigation changes, single-page applications.
- Implementation: Client-side, within the webpage’s JavaScript code.
Understanding the appropriate scenarios for each type of redirect helps maintain your site's integrity and performance, ensuring a smooth experience for both users and search engines.
H2: Redirects and Best Practices
Redirects are critical for maintaining a seamless user experience and preserving your site's SEO integrity. Improper redirects can lead to a drop in search engine rankings and can significantly increase page load times, impacting user satisfaction.
Correctly implementing redirects for SEO purposes ensures that your site remains both user-friendly and search-engine-optimized.
Consistency
Always make sure all redirects are consistently implemented to avoid redirect chains and loops. Inconsistent redirects can confuse both users and search engines, leading to a poor experience and potential ranking penalties.
Detailed Steps:
- Standardize Procedures: Use the same method and format for all redirects.
- Documentation: Keep detailed records of all redirects to avoid conflicts and errors.
SEO Impact
Use 301 redirects for permanent moves to maintain SEO rankings. Studies show that 301 redirects pass approximately 90-99% of link equity, making them essential for preserving your site's authority and search rankings during URL changes.
Detailed Steps:
- Choose the Right Type: Always use 301 for permanent moves to ensure SEO benefits.
- Monitor Impact: Use tools like Google Analytics and Search Console to monitor changes in traffic and rankings.
Monitor Redirects
Regularly check your redirects to ensure they are functioning correctly and not negatively impacting user experience. Broken or improperly configured redirects can lead to 404 errors and frustrated users.
Detailed Steps:
- Regular Audits: Schedule monthly or quarterly audits using tools like Screaming Frog or SEMrush.
- Error Logs: Check server error logs to identify and fix issues promptly.
Avoid Redirect Chains
Redirect chains can slow down page load times and confuse search engines. Always redirect directly to the final destination URL.
Each additional redirect in a chain increases load time, potentially causing users to leave before the page fully loads.
Detailed Steps:
- Direct Paths: Ensure that redirects lead directly to the target URL without intermediate stops.
- Tool Assistance: Use SEO tools to identify and eliminate redirect chains.
Update Internal Links
Whenever possible, update internal links to point directly to the new URL instead of relying on redirects. This practice improves load times and reduces server requests.
Detailed Steps:
- Manual Updates: Go through your site’s content and update links manually.
- Automated Tools: Use CMS features or plugins to automate the process where possible.
Use HTTPS Redirects
Ensure that all redirects move users from HTTP to HTTPS to maintain security and improve SEO rankings. Google has made it clear that HTTPS is a ranking factor, and users expect secure connections.
Detailed Steps:
- SSL Certificates: Make sure your site has a valid SSL certificate installed.
- Force HTTPS: Configure your server to force HTTPS connections for all pages.
Minimize Client-Side Redirects
Avoid using JavaScript redirects as much as possible because they are not ideal for SEO and can be blocked by users' browsers. Server-side redirects are more reliable and SEO-friendly.
Detailed Steps:
- Server-Side First: Always implement redirects on the server-side unless absolutely necessary.
- Fallback Plans: If client-side redirects are unavoidable, ensure they are backed up by server-side redirects.
By following these guidelines, you can effectively manage URL redirects, maintain SEO value, and provide a seamless user experience. For more detailed steps and examples, refer to resources provided by Namecheap, SiteGround, HostGator, and SEMrush.
FAQs
Do redirects pass full-page authority?
Redirects, particularly 301 permanent redirects, can pass most of the original page's authority, typically around 90-99% of link equity. This helps maintain your site's SEO rankings when you move content to a new URL. However, it's important to implement them correctly, as improper redirects can result in some loss of authority and negatively impact search engine rankings.
How can redirects hurt your website?
Redirects can hurt your website if they are misconfigured or overused. Redirect chains and loops can slow down your site, confuse search engines, and frustrate users, leading to higher bounce rates. Additionally, using the wrong type of redirect (like a 302 instead of a 301 for permanent moves) can prevent the transfer of SEO value, causing a drop in search engine rankings.
How do you test redirects?
You can test redirects using various tools and methods. Browser extensions like Redirect Path or online tools like Screaming Frog SEO Spider can help you check if your redirects are working correctly. Additionally, using Google Search Console allows you to monitor how Googlebot is handling your redirects and identify any potential issues.