“Redirected You too many times” error Basics
Redirected you too many times or err_too_many_redirects are same error occurs mainly due to invalid URL mapping of website. In simple words, err_too_many_redirects error in WordPress mainly comes due to your HTTP or HTTPS misconfiguration with respect to your SSL.
For example – If your website does not have a valid SSL certificate and you are using HTTPS URL for home and site URL then it is definitely going to give an error with the ‘Redirected you too many times' heading.
There are other factors that might cause the same error are
- Buggy plugins and themes
- Due to .htaccess rule
- Old Browser Data
- Some time due to WordPress Cache
But these are very rare, the main reason for this error is invalid SSL Configuration.
Fixing Redirected you too many times {err_too_many_redirects}
1.*Fixing with Site URL
I already mentioned that this error is mainly due to SSL misconfiguration.
Fixing Redirected you too many times error with the site URL is easy. You just need to change HTTPS to HTTP if your site does not have valid SSL and change from HTTP to HTTPS if your site has valid SSL. To do this you have 3 Methods mentioned below.
-
Method 1. Changing Site URL Through WordPress
Check your site URL in WordPress if you can access your WP Dashboard. There will be two boxes (indicated above in the picture) named WordPress URL and Site URL, now If you have a valid SSL integrated into your Hosting then change Both URLs to HTTPS, If you do not have an SSL Certificate then leave it as HTTP.
-
Method 2. Changing Site URL Through wp-config
If you are not able to change your URL from the WordPress dashboard, you can change it simply from wp-config.php the file. In order to do this, you need to access your file manager from cPanel or FTP and goto public_html (Home directory) of your site and search wp-config.php, now select the file and click on edit, go to the last section and Paste this code
define( ‘WP_HOME', ‘http://yourdomain.com' );
define( ‘WP_SITEURL', ‘http://yourdomain.com' );
Note-> Do not forget to replace yourdomain.com with your own site domain and change HTTP to HTTPS if you have a valid SSL -
Method-3-> Changing Site URL from phpMyAdmin, (1) Finding Database Name
To change your site URL from phpMyAdmin, firstly you need to know your site database. Access your file manager and go to public_html and then open wp-config.php, there will be a line
/** The name of the database for WordPress */
.
define( 'DB_NAME', 'u784880140_d3VTS' );
Hereu784880140_d3VTS
is database name so just write down it in your notepad. -
Method 3. (2) Entering in phpMyAdmin
Access your cPanel and search for phpMyAdmin and log in to it. There you will see all databases that have been created in your hosting. Now, match the database name with the one you wrote in the notepad and click on it. After clicking you will see a search box. Type wp-option and hit enter. you will see a table names wp-option below that search box, just click it. After clicking you will see a table where the site URL and home URL are filled in a box. Just change it to HTTPS if you have a valid SSL or change it to HTTP if you do not have one.
Note-> If you are using Cloudflare free SSL then this might be a different problem for you. Just login to your Cloudflare dashboard and go to SSL/TSL and change your setting to flexible then Change your site URL to https. If you need HTTP then just turn off SSL from Cloudflare.
Let me Help You Fix your Website
I can help you fix any issue on your website in only a few minutes, Just ping me on Fiverr and get your website fixed by me as a Pro Developer.
2. Fixing err_too_many_redirects by deactivating Plugins and themes.
Redirected you too many times error sometimes comes due to malicious themes or plugins, you just need to deactivate or delete them. If you are not able to deactivate a plugin directly from the WordPress dashboard, just access your cPanel and go to public_html>wp-content>Plugin and rename that plugin folder, this will deactivate that plugin manually. For Deactivating theme you need to follow the same step but remember that there must be a valid theme left unchanged.
3. Fixing Redirected You too many times by modifying .htaccess file
.htaccess file is a controlling file for search engines, browsers, and bots. Now to fix this error using, .htaccess you need to rename this file that resides in your home directory i.e. public_html.
firstly download this file on your PC from your server then rename it or delete it, After deleting clear cache and reload.
4. Fixing with Old Browser Data
This error is sometimes caused by your browser data like saved form, cache and cookies. You just need to clear all data from your browser and reload the page.
To clear your browser data, open your site and click on the lock icon at the top left side of the search bar. Click on cookies and remove.
5. Fixing with WordPress Cache
A WordPress cache is used to speed up website loading but sometimes this may cause a problem of redirecting you too many times. Just clear the cache and load your website in incognito mode. This can be done through your caching plugin like WP Rocket, Auto-Optimize, etc.
6. Fixing with DNS Record
This issue can some when you mapped your domain to go through www but in your site URL, there is no www. This happens mainly while setting up Cloudflare without DNS mapping.
Hosting Providers like siteground provide Cloudflare integration through the Cname mapping rule and sometimes, misconfiguration of www can cause a redirect too many times errors.
Read -> How to Speed UP Your Website Loading Speed
If you still need help with the issue, Feel FREE to contact our live chat support.
Thank you.
This method worked for me: 1.*Fixing with Site URL