Symptoms
A WordPress website is not accessible. One of the following errors is shown in a browser:
The page isn't redirecting properly
or
ERR_TOO_MANY_REDIRECTS
In Mozilla Web Console or Chrome Web Inspector there are endless redirects from www.example.com to example.com and vice versa.
The solution from this KB article did not help.
Cause
Invalid WordPress configuration.
Resolution
Log into Plesk.
In Plesk go to Domains > example.com and click File Manager and open the file wp-config.php.
Add the code below at the bottom of the file right before
?>:define('WP_HOME','http://www.example.com');
define('WP_SITEURL','http://www.example.com');If the issue still occurs, open the file _wp-config.php _and change the records to records the below:
define('WP_HOME','http://example.com');
define('WP_SITEURL','http://example.com');Note: This can also be done via Domains > example.com > WordPress > Log in > Settings > General > WordPress Address (URL) and Site Address (URL).
Rename plugins directory via Domains > example.com > File Manager (
wp-content/pluginsdirectory) or disable WordPress plugins one by one to find the faulty one.