How to Fix SSL Redirect Loop

Possible reasons for the ERR_TOO_MANY_REDIRECTS error and how to fix it

Updated over a week ago

After installing an SSL certificate to secure your domain, enabling HTTPS by default is essential to ensure a secure connection for all website visitors. However, sometimes this may lead to a redirect loop or ERR_TOO_MANY_REDIRECTS error.

Common Causes

Here are some of the most common causes and how to fix them:

Conflicting or Duplicating Redirects

Manual redirects added to your .htaccess file may cause this issue. To check it, temporarily disable the .htaccess file by renaming it and access your website from incognito mode. If the website works without errors, review and enable each redirect rule one by one to identify the conflicting one. You may need to seek assistance from your website developer.

Alternatively, check if there are any redirects section created from your hPanel.

Wrong Cloudflare Settings

If you are using Cloudflare, an incorrect SSL communication type or disabled Universal SSL could be the reason. Verify the SSL/TLS tab in your Cloudflare dashboard to check the SSL/TLS encryption mode.

To check the status of Universal SSL, log in to your Cloudflare dashboard and go to SSL/TLS tab → Edge Certificates:

The Universal SSL setting at Cloudflare

Incorrect WordPress URL in the Database

If your website is built on WordPress, a redirect loop could occur due to incorrect URLs in the database. To check this, access your website's database via phpMyAdmin and locate the wp_options table. Once there, check the values for the siteurl and home columns - they should start with https:

The siteurl and home values for a WordPress website on the database

If that is not the case, update them from http to https and your website should work properly.

You can also check the following video tutorial:

Did this answer your question?