ERR_TOO_MANY_REDIRECTS: what is the cause and how to fix it?

What is the "ERR_TOO_MANY_REDIRECTS" error? 

"ERR_TOO_MANY_REDIRECTS" Error.Happens when the browser can't load the page because it's stuck in an infinite redirection loop.

This means that the requested page redirects to a second page, which in turn redirects back to the original page, creating an endless redirection loop.

图片[1]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

Eventually, the browser will give up on loading the page and return "Too many redirects"Error message.

Examples are shown below:

Example of "Too many redirects" error message

图片[2]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

This mistake creates two major problems:

  1. Impact on user experience: Users are unable to access the web pages and will leave the site as a result, resulting in loss of traffic and possibly even loss of business revenue.
  2. Obstructing search engine crawlers: Search engine crawlers can get caught in redirection loops that prevent pages from being crawled and indexed properly. If the page cannot be indexed, it cannot be ranked in the search engines, thus affecting website traffic.

In this article, we'll look at "too many redirects."crapCauses and solutions.

Let's see what this error looks like in different web browsers.

How the "too many redirects" error appears in different browsers

Different browsers have different views of the "Too many redirects" Errors are displayed differently, here is an overview for each major browser:

Google Chrome

In Google Chrome.ERR_TOO_MANY_REDIRECTS The error displays the following message in the center of the screen:
"This page is not functioning properly. example.com redirected too many times."

Examples are shown below:
Display of ERR_TOO_MANY_REDIRECTS error in Chrome

图片[3]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

In addition, Chrome provides a button that allows users to try to reload the page.

Firefox

In Firefox, you may see the following message in the center of the screen:
"The page is not redirecting correctly."

Examples are shown below:
Display of ERR_TOO_MANY_REDIRECTS error in Firefox

图片[4]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

Firefox will also provide a button for the user to try to reload the page.

Safari

In Safari, the"Too many redirects" The error message is:
"Safari cannot open this page."

Examples are shown below:
ERR_TOO_MANY_REDIRECTS error in Safari

图片[5]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

Unlike Chrome and Firefox, Safari is not a standardized program. will not (act, happen etc) Provide buttons to reload the page.

Causes of ERR_TOO_MANY_REDIRECTS errors

ERR_TOO_MANY_REDIRECTS The error occurs when the browser is caught in an infinite redirection loop and cannot load the page successfully.

There are several possible causes of this problem:

Browser Cookies and Caching Issues

  • Corrupt cookies or old caches can cause redirection loops that trigger the ERR_TOO_MANY_REDIRECTS Error.

Redirection configuration error

  • This error can also be caused if a website has conflicting redirection rules.

Third-party services and plug-in issues

  • Misconfigured third-party services (such as CDN (Content Delivery Network)) or use of outdated plugins may cause the site to appear "Too many redirects" of the problem.

HTTPS settings are incorrect

  • SSL Certificate Configuration errors or HTTPS redirection rule exceptions may also trigger this error.

.htaccess file configuration error

  • .htaccess An incorrect variable in the file (used to configure web server settings) may cause the site to appear to ERR_TOO_MANY_REDIRECTS Error.

    How to Fix "Too Many Redirects" Error: 10 Solutions

    1. Clear browser cache and cookies

    In some cases, it leads to "Too many redirects" crapis notThe website itself, ratherbrowser (software)The

    The browser may have stored theDamaged Cookies maybe Older versions of the cachewhich triggers the ERR_TOO_MANY_REDIRECTS Error. This situation mayIt only affects you.The problem is that other users do not experience the same problem when they visit the site.

    To confirm whether the error is caused by browser caching or cookies, tryClearing your browser's cache and cookies. Here's how to do it in Chrome, Firefox and Safari The method of clearing data in the browser:

    Google Chrome

    Click on the browserThree-dot menu in the upper right cornerand then select "Settings"TheGoogle Chrome "Settings"

    图片[6]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

    existset upPage.Select "Privacy and Security" on the left sidebar.and then click "Clear browsing data"The"Clear browsing data" option

    图片[7]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

    In the pop-up window, set theThe time range is set to "all time"The

    • possibleUncheck "Browsing History"(optional), and then click "Clear data"The
      图片[8]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

      Firefox

      Click on the browserMenu button in the upper right cornerand then in the drop-down menu select "Settings"TheFirefox "Settings"

      图片[9]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

      existset upPage.Select "Privacy and Security" on the left sidebar.and then scroll down to "Cookies and website data" section, click on the "Clear data"The"Clear data" option in Privacy and Security

      图片[10]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

      In the pop-up window, click "Clearance" Ready to go.

        图片[11]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

        Safari

        In the top menu bar click on "Safari"and then select "Setting..."TheExpand the Safari menu and select the Settings option.

        图片[12]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

        existSettings windowIn the "Advanced" tab, check the "Display functionality for web developers"(if not already checked), and then close the settings window.The "Advanced" tab is selected and "Show features for web developers" is checked.

        图片[13]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

        take note of: This option may be displayed as "Show 'Development' menu in the menu bar"The

        Now."Development." option should appear in the top menu bar. Click on the "Development."and then select "Empty the cache."The

          图片[14]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

          2. Clearing the website cache

          Similarly to the browser cache, theCaching on the websiteIt can also lead to the problem of "too many redirects".

          If you use the WordPress, the following two plugins can help clear the site's cache files.

          take note of: IfUnable to access WordPress dashboardto use the plugin to solve the problem, you can seethe next step, try to clear the cache on the server side.

          W3 Total Cache Plugin

          go into WordPress BackendNavigate to "Performance"and then click "Dashboard"TheWordPress "Dashboard"

          图片[15]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

          strike (on the keyboard) "empty all caches"(Empty all caches)."empty all caches" option

          图片[16]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

          Refresh the page and check if the error disappears.

            WP Super Cache plugin

            go into WordPress BackendNavigate to "Settings"and then click "WP Super Cache"The"WP Super Cache" option

            图片[17]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

            Scroll down to the "Delete cached pages"(Delete Cached Pages) section, click the "Delete cache"(Delete Cache) to remove all cached files."Delete cached pages" option

            图片[18]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

            Refresh the page and see if the error has been resolved.

              3. Clearing the server cache

              Caching on the servermight alsoresult in "ERR_TOO_MANY_REDIRECTS" One of the reasons for the error.

              differenthosting providerThe method of clearing the server cache may vary.

              many ofManaged WordPress Hosting(e.g. WP Engine, Kinsta and SiteGround) inHost Management PanelIt is provided in theClear Cache in One ClickThe tool is user-friendly.

              If it's a self-hosted server, it depends on the control panel you use.

              4. Flushing the CDN Cache

              Content Delivery Network (CDN)(e.g. Cloudflare, Fastly and Akamai) is a set ofGlobally distributed serversThis helps websites deliver content to users more efficiently.

              unless CDN caches outdated content or infinite redirection loopsThis could lead toBrowser keeps jumping in a loopand thus triggered "Too many redirects" Error.

              Solving this problem requiresClearing the cache of a proxy server or CDNThe

              Clearing the cache in Cloudflare

              Login Cloudflare DashboardEnterDomain Management PageThe

              existLeft MenuIn the "Caching"(Cache), then select "Configuration"(Configuration).Cloudflare dashboard: expand the Cache menu and check the Configuration optionThe

              图片[19]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

              strike (on the keyboard) "Purge Everything"(Clear All Cache) button to delete all cached data.

              图片[20]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                This way, the CDN will no longer store incorrect redirection information, and it will be possible to fix the ERR_TOO_MANY_REDIRECTS Question.

                Everyone can learn about it tooHow to set up Cloudflare free CDN in WordPressThe

                5. Checking existing redirection rules

                If you have already troubleshot the caching issue, but still encounter the "ERR_TOO_MANY_REDIRECTS" error, then it might beRewrite rules in the server configuration fileProblems have arisen.

                What is a server profile?

                The server configuration file isSettings files that control the behavior of the Web server, they contain instructions to manage request processing, traffic routing, and security policies.

                It needs to be checked.May cause redirection loopsrewrite rules, check the following documentation (depending on the server type):

                • Apache server: Inspection .htaccess file
                • Nginx Server: Inspection nginx.conf file
                • IIS server: Inspection Web.config file

                301 redirects in .htaccess files(Apache server)

                take note of:: To the .htaccess Changes made to the files may cause various problems with the website. If you are unsure how to proceed, it is recommended that you first consult thedeveloperThe

                in the event that .htaccess filemisconfiguration, which may result in an infinite redirection loop. For example:

                RewriteEngine On
                # Redirect everything to /example-page
                RewriteRule ^(. *)$ /example-page [R=301,L]
                # Redirect /example-page to /
                RewriteRule ^example-page$ / [R=301,L]

                In this case:

                • user access /example-page/ When it will be 301 (permanent redirect) fig. change one's stance /example-page(Removed the end /).
                • But then again, the second rule wouldclassifier for objects with a handle /example-page Redirect to /example-page/therebycreate an infinite loopThe

                How to fix .htaccess redirect loop?

                To solve this problem, you canDelete the second rule, only the first redirection rule is retained, as follows:

                RewriteEngine On
                # Redirect everything to /example-page
                RewriteRule ^(. *)$ /example-page [R=301,L]

                How can I check for redirection issues on my website?

                It is possible to use Semrush's Site Audit Toolto detect the presence of a websiteredirect chainmayberedirect loopQuestion.

                existSite audit reportsIn the "# redirect chains and loops".(redirection chains and redirection loops) problem items to locate possible errors.

                Site audit issues screened for "redirection" related itemsThe

                图片[21]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                6. Reset .htaccess file

                as wellReset .htaccess file, to confirm whether it is the cause of theredirection errorThe reason.

                take note of::

                • due to .htaccess file directly affecting the operation of the site.Improper modifications can lead to serious website errorsThe
                • Therefore.Only make sure you are clear on the proceduremaybeWith developer assistanceThis operation is recommended only in the case of the

                How to reset .htaccess file to WordPress default configuration?

                Accessing the WordPress website folder

                • go intoHosting Provider's Control PanelmaybeFTPThe
                • locate "File Manager"(File Manager) and click Enter.

                  Go to the root directory folder

                  • The root directory is usually named "public_html","www","htdocs" maybe "httpdocs"The
                  图片[22]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                  Example: public_html folder

                  Backup .htaccess files

                  • In the root directory, find the .htaccess fileThe
                  • Right-click on the .htaccess fileand then select "Download"for subsequent restoration if needed.
                  图片[23]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                  Example: Download .htaccess file

                  Editing .htaccess files

                  • Right-click on the .htaccess fileand then select "Edit."The
                  图片[24]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                  Example: Edit .htaccess file

                  Checking and resetting .htaccess rules

                  • Look at the contents of the current .htaccess file and make sure it's rules match the WordPress Default ConfigurationThe
                  • If the rules don't match, you canDeleting an existing rule, and then paste the following default rule:
                  # BEGIN WordPress
                  RewriteEngine On
                  RewriteRule . * - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
                  RewriteBase /
                  RewriteRule ^index\.php$ - [L]
                  RewriteCond %{REQUEST_FILENAME} ! -f
                  RewriteCond %{REQUEST_FILENAME} ! -f RewriteCond %{REQUEST_FILENAME} !
                  RewriteRule . /index.php [L]
                  # END WordPress

                  7. Checking URL settings

                  crap URL Settings could lead to ERR_TOO_MANY_REDIRECTS Errors, especially in Host Migration maybe Domain name change Process.

                  How do I check the URL settings?

                  Go to the WordPress DashboardNavigate to "Settings"(Settings).

                  locate "WordPress Address (URL)" respond in singing "Site address (URL)"TheExample: Checking URL Settings

                  图片[25]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                  Verify that the two URLs matchThe

                  • If it doesn't match, modified so that it points to the correct domain name.

                    Note: If the two URLs are consistent, but the error still existsCheck URL Whether there are extra spaces at the beginning or endThe

                    8. Disabling plug-ins

                    Sometimes.WordPress PluginThe redirection rules inServer-level redirectionConflicts have arisen that have resulted in ERR_TOO_MANY_REDIRECTS Error.

                    In addition.Obsolete plug-insmaybecorrupt dataIt may also trigger this problem.

                    How can I test if the plugin is causing redirection errors?

                    Go to the WordPress DashboardNavigate to "Plugins" > "Installed Plugins"(Plugins > Installed Plugins).

                    图片[26]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                    Check all plug-ins

                    • upper leftCheck the "Select All" checkbox.The
                    图片[27]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                    Disable all plug-ins

                    • exist "Batch operation"(Bulk Actions) drop-down menu. "Deactivate."(Deactivate), and then click the "Applications"(Apply).
                    图片[28]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                    Refresh the website

                    • in the event thaterror disappears, indicating that a plugin is triggering the problem.

                      How do I find out what plugin is causing the error?

                      Activate plug-ins one by one

                      • Re-enable each plugin andRefresh the site after each activationCheck to see if it reappears "Too many redirects" Error.
                      • Error appears after activating a plugin, indicating that the plugin is the problem.

                      prescription:: Looking forAlternative plug-ins with the same functionalityto use; if it's a paid plugin, you can find thePlugin Support TeamReacting to the problem.

                        9. Check for HTTPS-related issues

                        SSL Certificate It can be used on the website with HTTPS (Hypertext Transfer Protocol Secure)It encrypts the data transmitted between the server and the browser to ensure that the user's information is secure and not stolen by hackers.

                        unless SSL certificate not properly installedorEnforcing HTTPS without SSL certificate installationIt could be triggered. "Too many redirects" Error.

                        How to check whether SSL certificate is installed correctly?

                        It is possible to use SSL Inspection Tool(e.g. SSL Shopper) to confirm whether the SSL certificate is installed correctly.

                        图片[29]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                        Misconfiguration of HTTPS redirection rules can also cause redirection loops

                        If HTTPS Redirection rule misconfiguration, the server may continually remove users from the HTTP Versionredirect to HTTPS VersionformationInfinite Redirection Loopwhich triggers the ERR_TOO_MANY_REDIRECTS Error.

                        Normally, if the SSL certificate is issued through theHosting Service Providerapplied for, they willAutomatically configure HTTPS redirectionThe

                        unlessSetting redirection rules manually(e.g. modifying an .htaccess file), it is important to make sure that the rules are written correctly, otherwise it may result in a "HTTP redirects too many times." The error.

                        图片[30]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                        Ways to avoid the problem

                        • assure SSL certificate is correctly installed
                        • Properly configure HTTPS redirection rulesAvoid unnecessary loop jumps

                        10. Inspection of third-party services

                        If you use Cloudflare act as CDNfurthermore SSL Mode set to "FlexibleThis may cause the site to appearredirect loopThe

                        This is because "Flexible" mode be sure toForcing websites to use HTTP loading, even if it has been installed SSL CertificateIt also triggers ERR_TOO_MANY_REDIRECTS Error.

                        How do I fix it?

                        This can be done in the Cloudflare Switch to other encryption modes, such as "Full" maybe "Full (strict)"The

                        Methods for Modifying Cloudflare SSL Settings

                        • log in Cloudflare dashboard, choose your website domain name.Cloudflare dashboard
                        图片[31]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解
                        • In the left menu, click "SSL/TLS"TheSSL/TLS" option in Cloudflare left menu
                        图片[32]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解
                        • Change the encryption mode to "Full" or "Full (strict)"The
                        图片[33]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                          This way, instead of forcing HTTP, Cloudflare will correctly support the installed SSL Certificateavoidance redirect loopThe

                          图片[34]-如何修复 ERR_TOO_MANY_REDIRECTS 错误:10 大解决方案详解

                          Fix and prevent redirection errors with regular website audits

                          redirect chain respond in singing redirect loop Issues such as these may trigger ERR_TOO_MANY_REDIRECTS Error. Fixing these problems in a timely manner ensures thatGood user experienceavoidanceloss of flowThe


                          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 Banner1
                          THE END
                          If you like it, support it.
                          kudos83 share (joys, benefits, privileges etc) with others
                          commentaries sofa-buying

                          Please log in to post a comment

                            No comments