Migration of Multisite WordPress site from http to https

I have completed the steps to update database to change the URL from http to https.

Then updated htacecss to add redirect rules.
But now anything except admin is going into endless loop of 301 redirect to itself.
Here is my .htaccess rules:

RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ – [L]
RewriteCond %{HTTPS} off
RewriteCond %{REQUEST_URI} !^/wp-json/
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

In wp-config.php below is the configuration lines:

define(‘WP_ALLOW_MULTISITE’, true);
define(‘MULTISITE’, true);
define(‘SUBDOMAIN_INSTALL’, false);
define(‘DOMAIN_CURRENT_SITE’, ‘www.example.com’);
define(‘PATH_CURRENT_SITE’, ‘/’);
define(‘SITE_ID_CURRENT_SITE’, 1);
define(‘BLOG_ID_CURRENT_SITE’, 1);

Please help to point the exact cause of endless loop of redirects.

Regards,
Vijay

Read more here:: Migration of Multisite WordPress site from http to https

Leave a Reply

Your email address will not be published. Required fields are marked *