How to Solve ERR_INVALID_REDIRECT of an HTTPS WordPress Website?

The ERR_INVALID_REDIRECT issue is typically a server-side problem that arises when the server is configured to enforce HTTPS (secure connection), but there’s a problem in how redirection rules are set, causing an infinite redirection loop or invalid redirection path. It can also be caused by incorrect settings in your WordPress site’s configuration.

Here’s a step-by-step guide on how you can solve this issue:

  1. Check your WordPress Address and Site Address

    Start by logging into your WordPress dashboard, then navigate to “Settings” > “General”. Here, check if the WordPress Address (URL) and Site Address (URL) are both using HTTPS. If they aren’t, update them to use HTTPS and save the changes.

  2. Update your .htaccess file

    If updating the URLs in your WordPress settings doesn’t solve the issue, there might be a problem with your .htaccess file. This is a configuration file used by Apache-based servers. You can find it in the root of your WordPress installation.

    Here’s a basic example of what you should add to your .htaccess file to enforce HTTPS:

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

    This snippet tells the server to redirect all HTTP requests to HTTPS.

  3. Check your SSL certificate

    If the issue still persists, it might be an issue with your SSL certificate. Make sure your SSL certificate is valid, properly installed, and supports all subdomains of your site (if you’re using any).

  4. Use a WordPress Plugin

    If you’re still having issues, you might want to consider using a WordPress plugin that can help configure your site for SSL/HTTPS. A popular choice is “Really Simple SSL”. This plugin can help automatically detect your settings and configure your website to run over HTTPS.

  5. Contact your hosting provider

    If all else fails, your best bet would be to get in touch with your hosting provider. They should be able to diagnose the issue and help you resolve it.

Remember, always backup your site before making any significant changes like modifying the .htaccess file or installing new plugins.

Leave a Comment