Question: A WordPress website is not accessible: ERR_TOO_MANY_REDIRECTS
Applicable to:- Plesk for Linux
- Plesk for Windows
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.
CauseInvalid WordPress configuration.
Resolution1.Log into Plesk.
2.In Plesk go to Domains > example.com and click File Manager and open the file wp-config.php.
3.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');4.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).
5.Rename plugins directory via Domains > example.com > File Manager (wp-content/plugins directory) or disable WordPress plugins one by one to find the faulty one.