• Resolved Rodrigo

    (@vejapixel)


    Hello guys,

    My site started giving an excessive redirect error (ERR_TOO_MANY_REDIRECTS). I realized that by disabling the Yoast SEO plugin, all the posts I accessed I was redirected to the homepage. If I activated the Yoast SEO plugin, any post would give an excessive redirect error.

    I have activated the Rewrite Rules Inspector plugin. So I decided to disable the Yoast SEO plugin, and when going to the Rewrite Rules Inspector page, I noticed that it shows an error: https://prnt.sc/v08e1j

    I click on “Flush Rules” (https://prnt.sc/v08e68) and the problem is solved, that is, the posts are accessed normally.

    So, I decided to activate Yoast SEO again and the excess redirection error returned.

    So, I decided to keep Yoast SEO enabled and disable the Rewrite Rules Inspector, but it doesn’t work. The error continues.

    It seems that the problem is really like Yoast SEO. However, just disabling the Yoast SEO plugin does not solve the problem right away. It only resolves if I disable Yoast SEO and then click on “Flush Rules” in the Rewrite Rules Inspector plugin.

    Can you tell me what could be happening?

    All plugins, WordPress and themes are updated to the latest version.

    Thank you!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Michael Tiña

    (@mikes41720)

    Hi,

    Did this issue start to occur with a particular version of Yoast SEO for WordPress? There is a redirects manager for the premium version of Yoast SEO for WordPress, but there shouldn’t be any redirect functionality in the free version of the plugin.

    We’re sorry that you are experiencing problems that might be caused by our plugin!

    Just to be sure, we would like to rule out any plugin or theme conflicts that may occur. The fastest way to do this is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Nineteen

    Test this on your development or staging site, if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin allows you to run a conflict check without affecting normal visitors to your site.

    As we can imagine that you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts.

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter Rodrigo

    (@vejapixel)

    Hi,

    Did this issue start to occur with a particular version of Yoast SEO for WordPress?

    I can’t tell you which version it started having problems with, but when I realized this problem, I was using the previous version 15.1. I am currently using the current version, 15.1.1, but the problem remains.

    In the Rewrite Rules Inspector plugin there is the following rule:

    Rule: category/(.*)$
    Rewrite: index.php?category_redirect=$matches[1]
    Source: category

    https://prnt.sc/v5zkf8

    I noticed that when activating the YoastSEO plugin, this rule is modified to:

    Rule: (.+)$
    Rewrite: index.php?wpseo_category_redirect=$matches[1]
    Source: category

    https://prnt.sc/v5zks9

    With that, it starts showing an error (a blank page appears with the error ERR_TOO_MANY_REDIRECTS).

    So, I disable the YoastSEO plugin and the blank page with the redirection error no longer appears, however, all posts are redirected to the home page.

    I go to the Rewrite Rules Inspector plugin and there shows an error in the category/(.*)$ rule: https://prnt.sc/v08e1j

    That is, as soon as I disable the YoastSEO plugin, this rule is corrected, and I just need to flush it.

    I do this by clicking on “Flush Rules” (https://prnt.sc/v08e68) and everything is resolved. The posts start to be accessed normally.

    It seems that YoastSEO is conflicting with the Rewrite Rules Inspector plugin and modifying this rule that is essential to access posts.

    Thank you!

    Hi @vejapixel,

    We tested rewrite rules using the Rewrite Rule Inspector, but we weren’t able to find any conflicts or the same rewrite rules that you appearing on your site using 15.1.1.

    Yoast SEO should only add the following rewrite rule if you set the option to remove “category” from URLs:

    category/(.+)$ index.php?wpseo_category_redirect=$matches[1]

    Have you set Yoast SEO to keep or to remove the category prefix? You can check by going to SEO > Search Appearance > Taxonomies.

    In some cases, removing the category prefix conflicts with other plugin or theme features. If your site it set to remove the category prefix option, does changing the option to keep the category prefix solve the redirects problem?

    Thread Starter Rodrigo

    (@vejapixel)

    Have you set Yoast SEO to keep or to remove the category prefix?

    It was in the Remove option.
    I changed to the Keep option and the posts went back to normal access.

    I have the No Category Base (WPML) plugin enabled. So, I disabled this plugin and activated the Remove from YoastSEO option again, and the posts continued to access normally.

    So here is the conflict, the option Remove /category/ from YoastSEO with the plugin “No Category Base (WPML)”.

    Perfect. Problem solved! Thank you for your help!

    • This reply was modified 5 years, 7 months ago by Rodrigo.

    Thanks for confirming that this has corrected it. We are going ahead and marking this issue as resolved but please let us know if you require any further assistance.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Too many redirects’ is closed to new replies.