Articles in this section

A WordPress website is not accessible: ERR_TOO_MANY_REDIRECTS

Plesk for Windows Plesk for Linux kb: technical ext: wptk ABT: Group B

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:

    PLESK_INFO: The page isn't redirecting properly

    or

    PLESK_INFO: 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

  1. 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 ?>:

    CONFIG_TEXT: 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:

    CONFIG_TEXT: 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.
Was this article helpful?

Comments

0 comments

Please sign in to leave a comment.