有时,Chrome在访问网站时会显示 ERR_TOO_MANY_REDIRECTS错误消息。如果您在Google Chrome(Google Chrome)上打开任何网站时遇到同样的问题,您可能会在此处找到一些解决方案。此错误类似于Firefox 上的页面未正确重定向(The page isn’t redirecting properly) 错误。
整个错误消息说的是这样的 -
This page isn’t working
[website-name.com] redirected you too many times.
Try clearing your cookies
ERR_TOO_MANY_REDIRECTS
供您参考,您应该遵循两种类型的解决方案。一,一些解决方案适用于普通用户。二,其余的是网站管理员。
(ERR_TOO_MANY_REDIRECTS)Chrome上的(Chrome)ERR_TOO_MANY_REDIRECTS错误
对于ERR_TOO_MANY_REDIRECTS错误,请遵循这些建议。前 7 条建议适用于最终用户,其余建议适用于网站管理员:
- 硬重装
- 清除缓存和 cookie
- 更改互联网连接
- 刷新 DNS 缓存
- 禁用扩展
- 禁用 VPN
- 扫描 PC 中的恶意软件/广告软件
- 检查 .htaccess(Check .htaccess)文件的重定向
- 检查 WordPress 网址
- 检查 SSL 安装
- 检查 wp-config.php 文件
- 禁用缓存插件
- 激活默认主题
- 禁用 CDN
- (Remove)从根目录中删除可疑脚本
- 禁用重定向插件
继续阅读以了解有关这些解决方案的更多信息。
1]硬重装
硬(Hard)重新加载会清除站点的缓存并像新访问一样加载页面。因此,它可以解决您的Chrome浏览器上的问题。当您使用Google Chrome浏览器时,您可以按照本教程 在 Chrome 中清空缓存并重新加载网页(empty cache and hard reload a webpage in Chrome)。
2]清除缓存和cookie
如错误消息所述,您应该尝试推荐的解决方案,清除缓存。与其 清除特定网站的 cookie 和缓存,不如(clearing cookies and cache for a specific website)清除 Chrome 中所有网站的缓存(clear the cache in Chrome for all sites)。
3]更改互联网连接
有时,您的ISP会根据某些规定阻止特定网站。如果发生这种情况,在某些情况下可能会收到这样的错误消息。如果您使用的是以太网(Ethernet)连接,请尝试使用移动热点,反之亦然。在刷新(Don)网页之前不要忘记重新启动浏览器。
4]刷新DNS缓存
刷新 DNS 缓存(Flushing the DNS cache)可以立即解决这些问题。如果网站管理员最近更改了服务器并随后更改了服务器,则由于错误消息而无法访问该网站;这个解决方案就像一根魔杖。
5]禁用浏览器扩展
浏览器(Browser)扩展应该可以改善用户体验并提高生产力。但是,同样的事情也可能导致此错误消息。如果是这种情况,您应该立即禁用所有扩展,以立即(disable all extensions at once)消除所有扩展冲突。之后,重新启动Chrome浏览器并尝试打开该网站。
6]禁用VPN
如果您使用的是 VPN 应用程序(VPN app),请尝试暂时禁用它。有时,问题出在VPN服务器上,因此您会遇到此错误消息。因此(Therefore),请暂时关闭您的VPN应用程序,并在没有匿名连接的情况下浏览网站。如果它打开,请联系VPN支持以进行澄清。
7]扫描PC以查找恶意软件/广告软件
如果您的计算机有广告软件或恶意软件,您可能会在Chrome和其他浏览器上发现同样的问题。广告软件/恶意软件会对您的设置和文件产生奇怪的影响。因此,不要忘记 使用防病毒软件扫描您的 PC(scan your PC with an antivirus)。
所有这些上述解决方案都适用于普通计算机用户。但是,如果您是网站管理员并想解决此问题,则以下解决方案适合您。
8]检查.htaccess(Check .htaccess)文件的重定向
如果您最近在 .htaccess 文件中添加了一些重定向(www 到非 www,http:// 到 https:// 等),然后网站开始显示错误消息,最好删除它们。换句话说,您的代码存在一些问题,您需要修复它们。如果您不知道这些,请尝试备份现有的 .htaccess 文件并使用默认代码保存 -
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
9]检查WordPress URL
有两件事需要始终正确 - WordPress 地址 (URL)(WordPress Address (URL)) 和 站点地址 (URL)(Site Address (URL))。在这些字段中存在拼写错误或错误的域扩展名(.com、.net、.org等);您可以找到相同的错误消息。因此,登录您的WordPress仪表板,然后访问 Settings > General。在这里,您可以找到必须输入正确URL(URLs)的两个字段。
10]检查SSL安装
ERR_TOO_MANY_REDIRECTS 是 常见的 SSL 连接错误, (common SSL connection error, )可以通过验证SSL安装来修复。当您在您的网站上安装SSL证书时,它会从 http:// 移动到 https://。但是,如果证书未正确颁发或安装,则可能会发生此错误。因此(Therefore),请通过整个安装过程来验证所有步骤。
11]检查wp-config.php文件
wp-config.php 与 .htaccess 文件一样重要,它们都为您的站点存储重要设置。在这个文件中,你可以找到两件事——
define( 'WP_HOME', 'https://your-domain.com' );
define( 'WP_SITEURL', 'https://your-domain.com' );
确保(Make)这两个 URL 正确。如果没有,请进行必要的更改。
12]禁用缓存插件
尽可能快地加载网站是许多网站设计师的最终目标,而缓存插件是他们的帮手之一。但是,如果您不正确地设置缓存插件,则有时可能会出现此类问题。因此,请停用您正在使用的任何缓存插件(W3 Total Cache、WP Rocket、WP Super Cache等)并重新加载您的网站。如果加载正确,您有多种方法可以解决此问题-
- 要求托管公司的支持为他们的服务器提供兼容的缓存插件。
- 删除(Delete)缓存插件的所有文件,包括与插件相关的 site_transient 条目。
然后,您可以使用新版本完成安装步骤。
13]激活默认主题
该主题使网站看起来与众不同,并为读者提供了更好的阅读环境。但是,如果您使用无效或盗版主题,则可能会导致一些问题。不仅是无效的主题,而且原始副本也会出现此问题。因此,请尝试激活您在每个新的WordPress主要版本中获得的默认主题。如果它解决了您的问题,是时候检查一些文件了,包括 header.php、functions.php、index.php 等。
14]禁用CDN
(CDN)当您的网站包含大量供读者使用的媒体文件时,CDN或内容交付网络非常方便。(Content Delivery Network)但是,如果CDN安装存在一些 NS 或DNS冲突,您的网站最终可能会显示此错误消息而不是原始页面。因此,请检查自己或寻求专业人士的帮助。
15]从根目录中删除可疑脚本(Remove)
您的网站可能会以不同的方式受到攻击,因此注意根目录中的文件始终是明智之举。您可以下载默认的WordPress安装文件并将其与您的安装进行比较。如果您发现任何可疑的东西,请搜索它以了解它是否存在插件、主题或其他任何东西。
16]禁用重定向插件
许多人经常使用重定向插件来设置 301 重定向或联盟链接伪装。但是,同样的情况也可能导致问题。因此,如果您使用此类插件将现有页面重定向到另一个页面,最好停用该插件并再次尝试加载网页。
这些是您可以用来解决问题的一些有效解决方案。希望(Hope)他们有所帮助。
ERR_TOO_MANY_REDIRECTS, This page isn’t working on Chrome
At times, Chrome shows ERR_TOO_MANY_REDIRECTS error message while accessing a website. If you are getting the same while opening any website on Google Chrome, you may find some solutions here. This error is similar to The page isn’t redirecting properly error on Firefox.
The entire error message says something like this-
This page isn’t working
[website-name.com] redirected you too many times.
Try clearing your cookies
ERR_TOO_MANY_REDIRECTS
For your information, there are two types of solutions you should follow. One, some solutions are for a regular user. Two, the rest of them are for a website admin.
ERR_TOO_MANY_REDIRECTS error on Chrome
To ERR_TOO_MANY_REDIRECTS error, follow these suggestions. The first 7 suggestions are meant for end-users whereas the rest are for website administrators:
- Hard reload
- Clear cache and cookies
- Change internet connection
- Flush DNS cache
- Disable extensions
- Disable VPN
- Scan PC for malware/adware
- Check .htaccess file for redirection
- Check WordPress URL
- Check SSL installation
- Check wp-config.php file
- Disable cache plugin
- Activate default theme
- Disable CDN
- Remove suspicious scripts from root directory
- Disable redirection plugin
Keep reading to learn more about these solutions.
1] Hard reload
Hard reload clears the cache for the site and loads the page like a fresh visit. Therefore, it can solve the issue on your Chrome browser. As you are using Google Chrome browser, you can follow this tutorial to empty cache and hard reload a webpage in Chrome.
2] Clear cache and cookies
As the error message says, you should try the recommended solutions, clearing the cache. Instead of clearing cookies and cache for a specific website, you should clear the cache in Chrome for all sites.
3] Change internet connection
At times, your ISP blocks a specific website for some regulations. If it happens, there is a chance of getting such an error message in some situations. If you are using an Ethernet connection, try using a mobile hotspot or vice versa. Don’t forget to restart your browser before refreshing the webpage.
4] Flush DNS cache
Flushing the DNS cache solves these kinds of issues immediately. If the website admin recently changed the server and following that, you can’t access the website because of the error message; this solution works like a magic wand.
5] Disable browser extensions
Browser extensions are supposed to improve the user experience and increase productivity. However, the same thing can cause this error message as well. If that is the case, you should disable all extensions at once to eliminate all extension conflicts at once. Following that, restart the Chrome browser and try to open the website.
6] Disable VPN
If you are using a VPN app, try disabling it temporarily. At times, the problem lies in the VPN server, and as a result, you encounter this error message. Therefore, turn off your VPN app for a moment, and browse the website without an anonymous connection. If it opens, contact the VPN support for clarification.
7] Scan PC for malware/adware
If your computer has adware or malware, you may find the same issue on Chrome and other browsers. An adware/malware acts weirdly with your settings and files. Therefore, don’t forget to scan your PC with an antivirus.
All these aforementioned solutions are for a regular computer user. However, if you are a website admin and want to fix this issue, the following solutions are for you.
8] Check .htaccess file for redirection
If you recently added some redirections (www to non-www, http:// to https://, etc.) in the .htaccess file, and the website started showing the error message after that, it is better to remove them. In other terms, your code has some issues, and you need to fix them. In case you do not know about these, try to backup your existing .htaccess file and save it with the default codes-
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
9] Check WordPress URL
Two things need to be correct all the time- WordPress Address (URL) and Site Address (URL). There is a spelling mistake or wrong domain extension (.com, .net, .org, etc.) in those fields; you can find the same error message. Therefore, log into your WordPress dashboard, and visit Settings > General. Here you can find those two fields where you have to enter the correct URLs.
10] Check SSL installation
ERR_TOO_MANY_REDIRECTS is a common SSL connection error, and it can be fixed by validating the SSL installation. When you install an SSL certificate on your website, it moves from http:// to https://. However, if the certificate isn’t issued or installed correctly, this error might occur. Therefore, go through the entire installation process to validate all the steps.
11] Check wp-config.php file
wp-config.php is as important as the .htaccess file and both store important settings for your site. In this file, you can find two things-
define( 'WP_HOME', 'https://your-domain.com' );
define( 'WP_SITEURL', 'https://your-domain.com' );
Make sure these two URLs are correct. If not, do make the necessary changes.
12] Disable cache plugin
Loading a website as fast as possible is the ultimate goal of many website designers, and the cache plugin is one of the helping hands they have. However, if you set up the cache plugin incorrectly, such an issue might occur at times. Therefore, deactivate whatever cache plugin (W3 Total Cache, WP Rocket, WP Super Cache, etc.) you are using and reload your website. If it loads correctly, you have multiple ways to fix the issue-
- Ask the hosting company’s support to provide a compatible cache plugin for their server.
- Delete all files of the cache plugin, including the site_transient entries related to the plugin.
Then, you can go through the installation steps with a fresh version.
13] Activate default theme
The theme makes the website look different from others and a better reading environment for the readers. However, if you use a nulled or pirated theme, it can cause some issues. Not only nulled themes but also this problem can occur with an original copy. Therefore, try to activate the default theme that you get with every new major version of WordPress. If it solves your issue, it’s time to check a few files, including header.php, functions.php, index.php, etc.
14] Disable CDN
CDN or Content Delivery Network is handy when your website contains tons of media files for the readers. However, if the CDN installation has some NS or DNS conflicts, your website can end up showing this error message instead of the original page. Therefore, check yourself or ask for a professional’s help.
15] Remove suspicious scripts from root directory
Your website can get attacked in different ways, and it is always wise to keep an eye on the files in your root directory. You can download the default WordPress installation file and compare it with your installation. If you find anything suspicious, search for it to know if it is there for a plugin, theme, or anything else.
16] Disable redirection plugin
Many people often use a redirection plugin for setting up a 301 redirection or affiliate link cloaking. However, the same can cause the issue as well. Therefore, if you are using such a plugin to redirect an existing page to another one, it is better to deactivate that and try loading the webpage again.
These are some of the working solutions you can use to fix the issue. Hope they help.