When developing your WordPress website, you may encounter several errors. One of the most common errors is the ERR_TOO_MANY_REDIRECTS error. In Google Chrome, it would appear as a redirect loop error on this web page. In Firefox, it would appear under the following name: The page does not redirect correctly. This error usually means there is a misconfiguration of your WordPress settings, forcing your website to loop forward and your website can not stop redirecting one page to another. Generally, this error is caused by WordPress plugins. Do not be afraid, because the solution to the error can be simple and fast.
- You have entered an incorrect website URL and website URL in your WordPress settings.
- Too many websites hosted on a single IP address may be causing this problem.
- The use of plugins with incorrect configurations may also result in an erroneous redirection of the page.
- A recent but incorrect change to the .htaccess file in WordPress may result in a redirect error.
1.Check The URL Settings
Go to the admin area of WordPress, go to “Settings” and click on “General settings”. Check the site URL and the WordPress URL in the settings.
Now, when buying a domain, if you have chosen a “no www prefix”, adding “www” “https://www.myexample.com” in your WordPress settings will cause an error. Similarly, if you have selected a “www” prefix, the fact of not adding the selected prefix will cause this error. To correct the error, you must delete or add the prefix according to your needs, then click on the ‘Save Changes’ tab.
2.Changing URL Settings Manually Via FTP
If you do not have direct access to the WordPress admin area, you must use the ‘File Manager’ to access it. You can easily modify the URL parameters using the “wp-config.php file”, which is the main WordPress file. You can get direct access to the file manager via the hosting panel. Here, locate the wp-config.php file and edit it using the FTP client.
The root access of this wp-config.php file should be – /public_html/wp-config.php or /public_html/subdomain/wp-config.php. Download the file and add the lines written below to this file.
You must replace example.com with the domain of your site. When finished, save the file and return it to the server. Now check if the error is corrected or not.
If a plugin is out of date or not functioning properly, temporarily disabling it will help resolve the error in no time. To do this, you simply need to access the “File Manager” and locate the “WP Content Folder” icon. Locate the plugins folder and rename it. You must rename the folder as plugins_backup. Save the changes and try to visit your website.
If the error is corrected, it means that one or more plug-ins on your website were out of date. As such, rename the plug-ins one by one until you locate the one that caused the error or try to remove recently activated plug-ins. This will help correct the error and once done, remember to rename your folder into Plugins.
4.Disable The .htaccess File
Sometimes the .htaccess file can also cause a redirection error. In this case, you must deactivate your file in order to access your website again. Access the file from the ‘File Manager’ folder. Select the .htaccess file and right click on the rename option. You can rename your file to anything, or simply add a number to the file, such as a .htaccess file, and click the backup option.
Check if your website loads correctly. You can also restore this file by backing up and deleting the current version. Get direct access to the new .htaccess file by logging into your WordPress account. The file is generated automatically and your website should work properly in this case.
Make Use Of PHPMyAdmin
The problem of too many redirects can also be solved by modifying your database. You must use PHPMyAdmin which is also a tool for the MySQL database. You must log in to Cpanel and choose Databases> phpMyAdmin. Once you enter the interface, you must add that command to the MySQL tab.
UPDATE wp_options SET op_value = “HTTP: //example.com” WHERE option_name IN (‘home’, ‘siteurl’);
Replace example.com with the domain of your site. Then check if you can access the page correctly.