This often happens when there are still URL’s pointing to HTTP or when you have a redirect plugin running.
Try first:
– Use a plugin like “better search replace” https://wordpress.org/plugins/better-search-replace/ and search and replace all occurrences of http://example.com to https://example.com
– Check if you have a redirect rule in your .htaccess or if you use a redirect plugin that uses a conflicting redirect
– Delete cookies
Does that help?
-
This reply was modified 3 years, 1 month ago by
WP STAGING.
When i have used better search replace it did some changes and then the site get into redirect loop so i had to change the url back from https to http in the site address URL.
No I don’t use any redirect plugin.
Here is the htacess file content
# BEGIN WordPress Multisite
# Using subdomain network type: https://wordpress.org/support/article/htaccess/#multisite
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
# add a trailing slash to /wp-admin
RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
RewriteRule ^(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
# END WordPress Multisite
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php71” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php71 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
I see.
Do you use cloudflare? Then this article could be related for you: https://support.cloudflare.com/hc/en-us/articles/115000219871-Troubleshooting-redirect-loop-errors-
Also, have a look at this guide:
https://really-simple-ssl.com/my-website-is-in-a-redirect-loop/
Your .htaccess looks ok.
If none of these suggestions are helpful, feel free to contact me at https://wp-staging.com/support/ and refer to this forum entry here.
I can have a personal look at your website, then.
Cheers
René
Thanks for your respond, I was able to fix this issue by adding $_SERVER[‘HTTPS’]=’on’; to wp-config file