While trying to log in to my website I noticed that Chrome is giving me the error message "ERR_TOO_MANY_REDIRECTS" preventing me from accessing the WordPress admin panel (/wp-login or /wp-admin). The website itself can still be reached, but only certain posts still work, specifically those with a https permalink. The weird thing is that all posts should have a https permalink. That goes for the entire website, really. I haven't made any changes to link structure or any other settings recently.
After an extensive Google search, I've now exhausted all possible solutions I can find without any success, which leads me to believe that there's an issue with the Ezoic setup.
Here's what I've tried so far:
- Clear browser cache and cookies, also tried to access the admin panel via multiple different browsers on multiple devices.
- Manually deactivate all plugins via FTP (renamed “plugins” folder within “wp-content” folder to “plugins_old” and created new empty “plugins” folder)
- Rename or delete .htaccess file
- Check “siteurl” and “homeurl” in “wp_options” in the database (same URL: https://mydomain.com)
- Adding code to wp-config.php
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
At the end or beginning of the wp-config.php
if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
$_SERVER['HTTPS']='on';
else
$_SERVER['HTTPS']='off';
At the beginning of the wp-config.php
if($_SERVER['PHP_SELF']=="/index.php")
{
define('WP_HOME','https://yourdomain.com');
define('WP_SITEURL','https://yourdomain.com');
}
else
{
define('WP_HOME','http://yourdomain.com');
define('WP_SITEURL','http://yourdomain.com');
}
At the beginning of the wp-config.php
It seems like I'm looking at a redirect loop without being able to fix it. Maybe there's an issue with the SSL integration via Ezoic? Any help would be appreciated.