How to Fix ERR_TOO_MANY_REDIRECTS Error in WordPress Website: Complete Fix Guide

ERR_TOO_MANY_REDIRECTS The error usually occurs when the site undergoesredirect loopcase. That is, the browser is constantly trying to get a page from aredirectsto another page and cannot find the final destination page. This problem can be caused by a variety of reasons, here are some common solutions.

1. Clearing browser cache and cookies

Browser caching and cookies may be a cause of redirect loops. Browsers may be caching pages or settings that have become outdated, preventing the site from loading the correct content, which can lead to redirect loops.

Operational Steps:

  • In your browser, press the shortcut key Ctrl + Shift + Delete (Windows) or Cmd + Shift + Delete (Mac) to open the Clear Browsing Data page.
  • Select Clear Cache, Cookies, and Site Data.
  • Ensure selection all time as a time range, which ensures that all expired caches are cleared.
  • strike (on the keyboard) Clear dataThe
图片[1]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
  • Then, reload your page and check to see if it resolves the issue.

2. Check WordPress URL settings

WordPress WordPress Address (URL) respond in singing Site Address (URL) If the settings are inconsistent, this may cause problems with redirection loops.

Operational Steps:

  1. Log in to the WordPress backend.
  2. go into Settings > GeneralThe
  3. ferret out WordPress Address (URL) respond in singing Site Address (URL). The two addresses should be identical.
    • If you are using SSL (HTTPS), make sure that both URLs start with https:// Beginning.
    • If you don't have SSL (HTTP) enabled, both should be http://The
图片[2]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
Ensure that the URLs are the same for both the WordPress Address and Site Address locations
  1. If you have changed these settings, click Save ChangesThe

3. Check SSL settings

Misconfiguration of SSL can often lead to redirection loops, especially after you have switched your site to HTTPS, where some pages may still try to load over HTTP.

Operational Steps:

  1. Ensure that both the WordPress address and the site address use the https://(if you have SSL enabled).
  2. Check if the SSL certificate is valid:
    • Visit your website (starts with HTTPS) and look for the lock icon next to your browser's address bar. If the green lock is not displayed or the certificate is invalid, you may need to reinstall your SSL certificate.
  3. If you are using the Cloudflare Make sure that Cloudflare's SSL configuration matches that of WordPress. For more information on how to do this, see this articleHow to Fix ERR_TOO_MANY_REDIRECTS Error in CloudflareThe

4. Disabling plug-ins

Certain plugins, especially caching plugins, SEO plugins, or security plugins, may modify the site's redirection rules and cause redirection loops. If the problem is caused by plugins, you can disable them by doing the following:

Operational Steps:

  1. Log in to your WordPress website root directory using FTP or a file manager.
  2. switch to wp-content/plugins Folder.
  3. Disable plugins one by one: by changing the name of the plugin folder to something like plugin-name_old to disable the plugin.
  4. After disabling the plugin, refresh the page and see if it resolves the issue.
    • If the problem is resolved, enable the plugins one by one until you find the one causing the problem.
    • Try disabling caching plugins (e.g. W3 Total Cache, WP Super Cache) and security plugins (e.g. Wordfence) to see if they are causing the redirection issue.
图片[3]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
Find the plugins file - right click - Rename
图片[4]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
Rename the folder to "plugins.deactivate" to disable all WordPress plugins on the site.

5. Check the .htaccess file

On the site's server..htaccess file is used to configure redirection and URL rewrite rules. If this file is not configured correctly, it may cause redirection loops.

Operational Steps:

1. Login to your site's root directory using FTP or a file manager.

2. Search .htaccess File. If the file exists, make a backup copy first.

3. Delete .htaccess Documentation.

图片[5]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南

4. Log in to the WordPress backend and go to the Settings > Fixed Links Page (English interface:Settings > Permalinks).

5. Click Save ChangesThis will automatically generate for you a new .htaccess Documentation.

图片[6]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南

default .htaccess The document is usually shown below:

    # BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} ! -f
    RewriteCond %{REQUEST_FILENAME} ! -f RewriteCond %{REQUEST_FILENAME} !
    RewriteRule . /index.php [L]
    </IfModule
    # END WordPress
    

    6. Check Nginx Configuration (for Nginx users)

    If your site uses an Nginx server, check that the redirection rules in the Nginx configuration file are not causing a loop.

    Operational Steps:

    1. Log in to your server using SSH.
    2. Find the Nginx configuration file, usually located in the /etc/nginx/sites-available/ maybe /etc/nginx/nginx.confThe
    3. Check the redirection rules in the configuration file to make sure there are no incorrect redirection directives, for example:
    server {
        listen 80; server_name ;
        server_name www.yoursite.com; return 301 www.yoursite.com;
        return 301 https://$host$request_uri;
    }
    
    1. Ensure that no multiple redirection rules conflict with each other.
    2. After modifying the configuration, restart the Nginx service:sudo service nginx restartThe

    7. Examination CDN Configuration

    If you're using a CDN (e.g. Cloudflare, KeyCDN, etc.), misconfiguration can lead to redirection loops.

    Operational Steps:

    • Log in to the control panel of your CDN service (e.g. Cloudflare).
    • option Overview > Advanced Actions > Pause Cloudflare on Site, determine if the service is causing the problem by suspending the Cloudflare service.
    图片[7]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
    option Overview
    图片[8]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南
    option Pause Cloudflare on Site
    • Check the SSL settings:
      • Ensure that the SSL settings are consistent with your hosting configuration (e.g., use "Full" or "Full Strict" SSL settings).
      • To disable automatic HTTPS rewriting, try turning off the Always Use HTTPS Setting.
    • Clear the CDN cache to ensure that the site loads the latest files.

    In Cloudflare, you can pass the Caching > Purge Cache Clear the cache.

    图片[9]-如何解决 WordPress 网站中的 ERR_TOO_MANY_REDIRECTS 错误:完整修复指南

    8. Checking customized code and redirection rules

    If you use custom code in your site, or have set up redirection rules manually (e.g., via a plugin or wp_redirect() function), check that these settings are correct.

    Operational Steps:

    1. Check your custom code in the theme or plugin to make sure you're not using redirection functions (such as the wp_redirect() maybe header()).
    2. If you are manually configuring URL redirection, make sure that the redirection loop is not set to the wrong direction.
    3. Try disabling all custom redirection rules and see if that resolves the issue.

    9. Contacting the hosting provider

    If you've tried all of the above and the problem persists, it may be a server-side configuration issue. You can contact your hosting provider and ask if there are any server configuration errors or adjustments that need to be made, especially for Nginx or Apache configurations.

    Going through these steps in this article will hopefully help you to identify and solve the ERR_TOO_MANY_REDIRECTS Error.redirect loopThis problem is usually associated withconfiguration file,URL Settings,plug-in (software component)maybe(computing) cacheRelated.


    Contact Us
    Can't read the article? Contact us for free answers! Free help for personal, small business sites!
    Tel: 020-2206-9892
    QQ咨询:1025174874
    (iii) E-mail: info@361sale.com
    Working hours: Monday to Friday, 9:30-18:30, holidays off
    © Reprint statement
    This article was written by Early Season
    THE END
    If you like it, support it.
    kudos6 share (joys, benefits, privileges etc) with others
    commentaries sofa-buying

    Please log in to post a comment

      No comments