This error usually occurs due to a misconfigured redirection issue in WordPress site. With the help of this article you will know how to fix- Too many redirect issues in your website. This type of error generally occurs due to internal redirection of websites.
Solution #1: Check the URL settings in WordPress Admin Dashboard
The first thing you need to do is check the URL settings of your website in your WordPress dashboard. To perform a URL check:
- Sign into your WordPress account as Administrator.
- Once logged in, navigate to the Settings page and click General Settings.
- When on the General Settings page, you will notice there is a list of settings and available options. Double-check and ensure that both, the WordPress and Site addresses, match.
If there is a mismatch between the two URLs (e.g. the WordPress Address is set to http://mydomain.com/, but the Site URL points to http://www.mydomain.com/), then you will need to make sure that both web addresses are same.
Solution #2: Check the URL in wp-config.php
wp-config.php is the place where WordPress stores its database connection settings. In the main WordPress configuration file, users are also able to manually specify their URL location. This is one of the most preferred methods, since it does not require direct access to the admin panel and phpMyAdmin.
If you have set the website URL manually in your WordPress config, open up the file wp-config.php in your main domain directory and check your script for the following two global variables – define( ‘WP_HOME’, ‘http://www.mydomain.com’ ); and define( ‘WP_SITEURL’, ‘http://www.mydomain.com’).
Please verify that the WP_HOME address matches the WP_SITEURL hostname in the code.
Solution #3: Check .htaccess file Redirection rule
Login to cPanel account and go to File Manager
Go inside public_html and find .htaccess file. Open the file and check SSL redirection rule
Solution #4: Check into SSL/TLS in Cloudflare
Login to Cloudflare dashboard and go to SSL/TLS section and check the redirection. Make sure everywhere the redirection should be same. You can disable this redirection in Cloudflare. At last you can also modify the SSL to Flexible mode.
If you have tried all of the above solutions and none of them has helped so far, you can temporarily disable WordPress’s main .htaccess file. The renaming process is pretty easy to follow. All you need to do is right-click on the .htaccess file and then hit the Rename button. Remove the dot from your file name and save the submitted changes.
Visit our Blog for more details. You can also watch the video here.