WordPress GuideSEO → Minimize Redirects

How to minimize redirects in WordPress

If you’re redesigning your website, changing your website structure, or updating old content, you’ll want to set up redirects so you don’t lose traffic.

Keep reading this blog to learn best practices around redirects, and how to minimize redirects in WordPress.

Get fast, reliable hosting for WordPress

Power your site with the industry’s fastest, most optimized WordPress hosting

What is a redirect?

Why is it important to minimize redirects In WordPress?

Redirects can impact your website’s performance in a number of ways. Because of that, it’s important to minimize redirects in WordPress.

When you incorrectly type in a URL, WordPress automatically redirects you.

For example, if your page is at example.com/mall/food-court but you incorrectly type in example.com/food-court — WordPress is smart enough to send you to the right location.

Unfortunately, it doesn’t always work as planned. One example is when you have http to https. Another example is when you have www to non-www.

The following could end up happening to your visitors:

This makes development easy but it has its pitfalls:

There are other things that can make it hard to minimize redirects in WordPress. You may have images, Javascripts, CSS files, and links that are setup to the wrong location and will therefore redirect with each page load sneakily without you even noticing.

How to minimize redirects in WordPress

There’s a number of things you can do to minimize redirects in WordPress. You can use various online tools to check your page. Check out our article on debugging redirects.

You can also use GTmetrix to find them https://gtmetrix.com. With GTmetrix, you’ll see something like this when you test your site:

1. Go to the Structure section.

2. Open the Avoid multiple page redirects section.

Here you can see the problem:

These redirects took a total of 564ms. That’s almost half a second. While half a second may not seem like a big deal, issues like this do affect your Google ranking and your user experience.

In this example, you only see issues with the home page redirecting. But, you may have linked resources redirecting as well. If you stack all of these issues together, they can add up to multiple seconds of wait time. GTmetrix will show you all of the redirecting resources.

How to fix and minimize redirects

First of all, double check that links on your site are updated to the correct URLs.Make sure that all of your resources on your page are linked to the final destination.

Secondly, you’ll want to make sure that what’s in your database matches what’s in Google and the other search engines.

For example, let’s say Google has you indexed as: https://www.example.com

But you have in your database:

It should be:

How to minimize redirects with a WordPress plugin

If you’re redesigning or restructuring your site, you’ll want to map your old urls to the new urls. You can do this with a WordPress redirect plugin. Redirection is a good example of one.

While you can minimize redirects with the WordPress plugin, it does have its limitations. You still will want to set up a canonical domain redirect. For that, we use .htaccess. You’ll have to choose which option works best for you.

Note: It’s recommended to use https on your entire site but, if you don’t want to, you can do the same thing for http using the options below.

These will not only do 2 redirects at the same time, they will also redirect all of your sub-pages. The $1 is what handles the sub-page redirect.

As I stated previously, if you’ve redesigned your site or changed its structure, you’ll want to redirect those pages as well. You can either do this part in the WordPress plugin to minimize redirects or you can do this in .htaccess using the code below.

You’ll typically want to use 301 redirects. However, if you’re temporarily moving a page, you’ll want to use 302 instead of 301.

Too many redirects

If you notice this error, check out our Too Many Redirects article.

Other issues affecting redirects and performance

If you’re running outdated WordPress, plugins, or themes, you can get errors like unnecessary redirects. However, installing updates can also break things. Read our article for best practices on updating your WordPress website safely.

You may at times need to put your WordPress site in maintenance mode during updates. Read our blog to learn how to put your WordPress website into maintenance mode.

Getting started with minimizing redirects in WordPress

Now you know how to reduce the number of redirects on your WordPress website to improve page speed and rank higher in search engines like Google.

Additional resources

Comprehensive guide to securing WordPress with ModSecurity

This guide provides a comprehensive overview of how to use ModSecurity to enhance the security of your WordPress site.

Redirecting URLs using htaccess→

Ease domain changes and maintain visitor clarity with URL redirects using .htaccess files in your web folder. Keep existing settings; consult a developer if needed.

Why security matters for WordPress enterprise hosting

Use the blog as your guide to attacks to watch out for, security best practices, and steps to improve the WordPress protection you already have.

Brian Corson graduated from U of M where he studied web development and graphic design. As a developer, he worked for a national healthcare provider where he maintained databases, CMS’s and web applications, virtual servers and containers. Since then, he’s transitioned to be Linux System Administrator for Liquid Web where he fights hackers, optimizes servers and websites and troubleshoots networking issues.