blog posts

Training on how to fix Minimize Redirects and Avoid URL redirects errors

In this article from the Gtmetrix training series, I am going to discuss how to fix Avoid landing page redirects, Minimize Redirects, and Avoid URL redirects errors in gtmetrix. It must have happened to you that you were forced to change the address of one of the pages of the site for any reason, and in order not to lose the value that the desired page has gained, you tried to inform Google that the validity of this page by using redirection. Move to a new address. But when you start testing the speed of the site, you will see that you encountered one or more of these three errors on your site. All these errors are related to the redirects that take place on the site, and if you do not use redirects correctly, or if you have many redirected links on your site, you will face the problem of slow loading speed on the site.

In this tutorial from Hostfa’s knowledge base, going to discuss how to fix Avoid landing page redirects, Minimize Redirects, and Avoid URL redirects errors, all three of which have the same solution to fix these errors. So, if you encounter any of these three errors, stay with us until the end of this article.

What is Redirect or changing the direction of web pages?

Redirect is a method that can be used to direct visitors to a site from one address to another. For example, you have a page called site.com/first-page, and now you have decided to redirect those who enter this page to site.com/second-page. While these transfers to different pages are useful in terms of optimizing the site, they can sometimes cause problems and cause the site to suffer from slow speed due to the large number of redirects. You will come across this problem by checking the site speed in GT metrics.

Why does redirection cause problems?

You must be wondering why redirecting makes the site slow. I will explain redirect from page one to page two with the same example. When the visitor enters the first page, the browser starts sending a request and naturally the server gives the appropriate response and sends different files to load this page. At one point, this request is reached, which is instructed to move the visitor from this page to the second page. So it does this, and when this situation occurs, another series of requests is sent to the server, and the server starts responding to the browser to send the second page to the user in full. The problem starts exactly when the server receives a request to transfer the page. At this moment when the user is redirected from the first page to the second, a series of requests are requested from the server, which, if the number of redirect links on a site or even a page is high, causes the number of HTTP requests to increase and ultimately slows down the speed. You will encounter the site.

for almost a year now free SSL . Or that some sites still tend to use WWW or no WWW . When one of these modes is selected, it is necessary to move the user from the wrong link entered to the site structure with the new address. So what happens is that during the time when the transfer is done, the number of requests increases and we face a slow loading speed of the pages.

Now, if we consider this issue at the macro level and the high number of visits that the arrival of smart phones has made the issue even worse, we will face a disaster on our site. So, to fix the Avoid landing page redirects, Minimize Redirects, and Avoid URL redirects errors in gtmetrix, we must control these redirects.

How to control redirection?

This possibility depends on your use and your reason for redirecting pages. You should find all the pages that are redirected on your site. Then check and see what was the reason for this change of direction? Is there a better way to do our work without changing the path? And whether the change of direction was done with a correct view? A very common mistake that occurs in the same situation is the use of SSL or WWW on the sites that we will examine below.

Suppose you didn’t use SSL when you built your site and you just want to do this. So, in this case, there are two choices to enter your site, which can be mizbanfa.net or www.mizbanfa.net. But now that you have decided to use SSL, considering whether you are using WWW or not, you must determine whether the user will be transferred to HTTPS://WWW .mizbanfa.net or to HTTPS:// mizbanfa. net transfer it.

The common mistake in this issue is that they first redirect the user to the site address with https and then to the site address with www, which causes you to redirect the same user several times. The right choice is to come once and directly transfer the user to HTTPS://www or HTTPS://. Your only goal should be to limit these successive redirects to just one time, of course, only when you really need it.

Fixed Minimize Redirects and Avoid URL redirects errors in Gtmetrix

  • Avoid landing page redirects: If you encounter this error in GT metrics, it means that you should avoid redirecting landing pages.
  • Minimize Redirects: If you encounter this error, it means that you should minimize the number of redirects you have on the site pages.
  • Avoid URL redirects: If you encounter this error, you should generally avoid redirecting this address.

Depending on which of the above situations you encounter, you should check the address and see if you need to redirect or not. There may be a better way in front of you that does not require creating a new page or even redirecting to another page. Another problem with redirection is that not all links are related to your site, and you should definitely use external sources such as statistics, tools to display specific content from a site on your site, etc.

In this case, you may be shown redirected addresses in GTmetrix that are not related to your site at all, and if you encounter a large number of such cases, try to use another alternative service that does not cause these problems.

I hope that this training has been of interest to you and that you have been able to fix the errors of Minimize Redirects and Avoid URL redirects in Gtmetrix by using it. If you have any questions or problems related to this tutorial and how to fix the problem of redirects on your site, please let us know in the comments section