How To Fix WordPress HTTPS Redirect Loop?

WordPress is empowering over 30% of internet websites. Thus, your website is more likely based on WordPress. In this article today, we’re resolving an issue that happens quite often if something went wrong with your site; The HTTPS Redirect Loop issue.

This issue simply happens due to multiple internal redirects that typically occur after a recent change or update on your WordPress site. This also may be caused due to a configuration issue or a third-party plugin incompatibility.

While this issue happens quite often to WordPress users, the fix is pretty simple and straight-forward. In this article, we’re going over different tips and recommendations to help get this issue resolved for you.

WordPress HTTPS redirect Loop:

First, you’ll need to understand the issue and why it happens in order to resolve it. Basically, you’re receiving this error message because your website goes into an infinite redirection loop.

For example, there is a redirect that says (URL#1 redirects to URL#2) and at the same time, there is another redirect command that says (URL#2 redirects to URL#1). This is what techies usually call; infinite redirection loop. And by the subordinate, your website will not load.


1. Clear Cache:

Most of the time, this error could be easily fixed by removing Cache. Clearing the cache will definitely resolve the issue for you. This may be resolved by doing one of the fixes below:

  • Clearing Browser’s Cache & Cookies.
  • Clearing WordPress Cache.

Clearing the browser’s cache and cookies could be easily done via the browser settings. All you need to do is to head to the browser settings screen and click the button to delete all stored cache and cookies. The following screenshot could be of much help to you:

Clearing the WordPress cache is dependable on the caching plugin you’re using. Whatever the plugin or the caching method you’re using, you will just need to click on the “Purge Cache” or “Delete Cache” button in the WordPress Dashboard Toolbar on the top.


2. HTTPS & SSL Misconfiguration:

This is almost the commonest reason for such a redirect issue. You probably are using an SSL Certificate with a misconfiguration that needs to be fixed. Here are different facts about why this issue happens:

  • Using HTTPS with no Valid SSL Certificate:
  • Redirecting HTTP to HTTPS rule not configured.

In both cases, the first thing you will need to do is to check whether you have a valid SSL Certificate installed. All you have to do here is to run a quick check on this SSL check tool. This tool will tell whether you have an SSL certificate or not. This is very important to know first.

Congratulations, if you found a valid SSL Certificate. And if not, you will need to ask your web hosting provider to set up one for you. Most providers are issuing free SSL Certificates. The one we always recommend is BlueHost.

The second step here is to set up a redirect loop to handle HTTP/HTTPS redirection. This could be easily done via the (.htaccess) file in your public_html directory. To access this directory, you may want to use FTP or the File Manager tool in your web hosting control panel.

Here’s the rule to paste in (.htaccess) file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

How To Check Website Redirect Status?

If you’re still having the same issue, it’s recommended to check the redirect status on your website. This will help you have a clear idea about what’s happening and what could be the reason for this WordPress redirect loop problem.

Using Patrick Sexton’s Redirect mapper tool will give you a better image on what’s causing the issue. Accordingly, you will be able to understand and resolve the issue easily.

Here is a screenshot for a site that reports a redirection error:

Conclusion:

WordPress HTTPS Redirect Loop can be very easy to resolve and some other time it could be tricky to track down. The above-mentioned steps and guidelines should help you get a clear idea of why your site is getting this error and how to resolve it correctly for a better user experience.

That was all about the HTTPS Redirect Loop fix. If you’ve got any questions or concerns, feel free to respond via the comments below. We will be very happy to assist you further along the way.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.