Home
/
WordPress
/
How To Questions
/
How to Fix the Error 'Too Many Redirects' in Your WordPress Site

How to Fix the Error 'Too Many Redirects' in Your WordPress Site

The most common reasons that cause this type of error are outdated cookies, a problem with some redirection plugins, cache, wrong rules in the .htaccess file, and a problem with your website’s URL configuration with the combination of the Cloudflare settings. Continue reading to find out how to troubleshoot this issue.

Delete cookies

If you are using the Chrome browser, go to Settings > Clear Browsing Data > Clear Data.

In Firefox, go to History > Clear Recent History. Select Details and uncheck all boxes except Cookies. Specify the time range and click Clear Now.

In Safari, click on Safari > Preferences > Privacy > Manage Website Data > Remove All and confirm.

In Opera, click on Settings > Delete Private Data > Check both boxes Delete temporary cookies and Delete all cookies, then click on Delete.

Then, refresh your website, and see if the error is present.

Disable plugins

If the problem still occurs, try to disable your plugins from the database or via your dashboard. Follow the instructions in this article in order to disable them directly from the database.

To disable your plugins through the dashboard, log into your WordPress admin dashboard > Plugins > Deactivate. Reload your website to see if the problem has been resolved.

Another proper way of disabling plugins is by using WP-CLI (a command-line interface that allows the users to manage their WordPress web sites from the command prompt over SSH). To disable a plugin via WP-CLI, execute the command listed below:

wp plugin deactivate Plugin_Name

Only after trying the methods above, and if the error still persists, disable the plugins by renaming the respective folders. Before making that change, make a backup of your website’s files and database from Site Tools > Security > Backups.

Then, go to SiteGround Client Area > Websites > Site Tools next to the desired website and click Site > File Manager. In the left column of File Manager, find the specific folder of the redirection plugin and change its name.

Cloudflare settings

Your website’s URL configuration with the combination of the Cloudflare settings can also cause such an error. If you have activated Cloudflare, but your website is not properly configured to work with the HTTPS version, or for some reason, the SSL Support Settings were changed, this will result in the error “Too Many Redirects.”

To fix that, you need to adjust Cloudflare’s SSL Support settings according to the URL scheme (http/https) that your website is using. The Cloudflare SSL Support settings are located in your Site Tools > Speed > Cloudflare > Manage Cloudflare Settings > SSL Support.

To check your website’s current URL scheme and appropriate Cloudflare setting, go to your WordPress Dashboard > Settings > General. If the Home and Site URL start with “HTTPS”, then you need to select the “Full” setting in Cloudflare’s SSL Support.

If the Home and Site URL start with “HTTP”, then you need to select “Flexible” is an appropriate setting.

.htaccess file modification

Before modifying the .htaccess file, note that any custom options (added manually or by a plugin) will be lost in case the .htaccess file is replaced with the default one. Also, in case the website is using Standard PHP and a PHP version that is different from the Managed, this setting will be also lost and may be required to set the version again.

Go to SiteGround Client Area > Websites > Site Tools next to the desired website. Then, go to Site > File Manager and look for the root directory of your website (public_html). Right-click on the .htaccess file and select Rename and add ‘old’ at the end of its name in order to keep a backup, and click Confirm.

Then, create a new file using the New File button and title it ‘.htaccess’.

Right-click on the new file and select Edit. Copy and paste the following values into the file and Save it:

# BEGIN WordPress

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Clear cache

If your website is using Memcached for example, the changes you make will not take immediate effect. It is recommended that you clear all the cache from Site Tools > Speed > Caching and click the Flush Cache icon under Actions for the desired website. Clear also the cache from your browser.

You can also check this video tutorial:

Share This Article