A Comprehensive Guide to Setting Up URL Redirects

Wordpress

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:

  1. Login to cPanel: Access your cPanel dashboard by entering your cPanel URL, username, and password.
  2. Navigate to redirects: Under the "Domains" section, click on "Redirects" to start the process.
  3. 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".
  4. Add redirect: Click "Add" to finalize and save your redirect settings.

Setting Up a Redirect in WordPress

wordpress url redirects

Setting up redirects in WordPress can be done using plugins or by editing the .htaccess file.

Using a Plugin:

  1. Install a redirect plugin: Plugins like "Redirection" make setting up redirects straightforward.
  2. 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:

  1. Access .htaccess: Use an FTP client or the cPanel File Manager to locate and edit the .htaccess file in your website’s root directory.
  2. Add redirect code:
    apache
    Copy code
    Redirect 301 /old-page.html http://www.example.com/new-page.html
  3. 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

wix url redirects

To set up a redirect in Wix, follow these steps:

  1. Login to Wix: Access your Wix account and go to your website’s dashboard.
  2. Go to SEO Tools: Navigate to the "Marketing & SEO" section, then select "SEO Tools".
  3. Manage 301 Redirects: Click on "URL Redirect Manager" to manage your redirects.
  4. 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.
  5. 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.

Join Our Monthly Newsletter

Discover the best practices to boost your conversions with geo-targeting and more.
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Diana Bocco
August 1st 2024
Written by

Copywriter

|

Diana Bocco is a writer specializing in turning SaaS jargon into snappy, marketable content. As a freelance writer and copywriter, she's teamed up with some of the coolest brands in the SaaS, B2C, and marketing sectors, including UptimeRobot. Diana's specialty? Taking a brand's story and expertise and shaping it into content that drives traffic, generates valuable leads, and builds a tight-knit community.

Real stories of geo-targeting impact

William D.

Small Business

⭐⭐⭐⭐⭐
Feb 26, 2024

An Incredibly Handy Tool for Your International Customers

Geo targetly allows us to redirect our international customer to specific pages and make sure that they can get the right UX. It is very helpful when you have like us different currency to manage. Also it is very easy to implement on your Webflow website.
Michal C.

Entrepreneur

⭐⭐⭐⭐⭐
Aug 15, 2024

Geo Targetly Is a Great Option for My Multiple Shopify Sites

@GeoTargetly - Love this tool for global e-commerce redirects. I use it on several Shopify sites and love it. You can use one link and send people to different links based on their location and a ton of other stuff too.
#globalecom #ecommerce #shopifystore
Cheryl T.

Marketer

⭐⭐⭐⭐⭐
Oct 4, 2021

It Is Very Easy to Use On Wix - the Help Articles Were Useful

We wanted to be able to segment certain landing pages for certain geographical locations and using the redirect page especially for our pricing pages was extremely helpful in helping us achieve this task. It has allowed us to target certain landing pages effectively.
Mainak G.

Psychologist

⭐⭐⭐⭐⭐
Nov 28, 2023

A Game Changer For Global Business

As the backbone of our emerging global approach, Geo targetly has been holding our back. It's hassle free, they transform your website in the most appropriate ways for different countries, tribes, localities. Besides top notch features customer support is amazing.
Chris T.

Managing Director

⭐⭐⭐⭐⭐
Jan 12, 2021

"Geo Redirects Made Easy" - Great Tool And Very Attentive Support

I really liked how easy it was to integrate the geo redirects into our Shopify website with a single block of code. The user interface also made it simple to define our business rules with regard to how we want users to be directed around our 3 sites.
Daan D.

Digital Marketing Manager

⭐⭐⭐⭐⭐
Oct 4, 2021

We Have Seen a Great Increase In Our Traffic

Very easy to set up and run. We use Geo Targetly to set up redirections for our specific geo based versions of our website. We have seen a great increase in our traffic and it has been a helpful addition to our tool stack. It's very useful and does what it says.

Start in just a few clicks

try 14 days free
Your Privacy

We uses cookies to improve your experience on our site, analyse site traffic and to show you relevant content. By using our website, you consent to our use of cookies. For more information please, see our Privacy Policy

ACCEPT ALL
ACCEPT NECESSARY
REJECT ALL