WordPress website does not work: too many redirects

Follow

Comments

4 comments

  • Avatar
    Kiwami Livingston

    It does this for every single site I set up.. Is there a fix for that ? 

  • Avatar
    Konstantin Annikov

    Are you sure that the following symptom is actual for every affected website: 

    2. In Mozilla Firebug or Chrome Web Inspector there are endless redirects from www.example.com to example.com and vice versa.

    If yes, this means that every WordPress website is misconfigured.

    Please check that WP_HOME and WP_SITEURL are the same and that preferred domain is set to the same value as WP_HOME under Plesk > Domains > example.com > Hosting Settings

    That should be done for every affected website. 

     

  • Avatar
    Kiwami Livingston

    Yes.. If I modify wp-config.php  WP_HOME and WP_SITEURL the problem goes away. 

    My question is why do I have to do that to every single wordpress site I create via the Wordpress Tool ? 

    Am I missing a configuration step?

  • Avatar
    Konstantin Annikov

    Hello, 

    Could you please describe how the WordPress was configured? I see here two possible ways: 

    1. Configure WordPress and then configure redirection in Plesk

      - Install WordPress right after site creation (WP_HOME and WP_SITEURL would be http://example.com)
      - Configure SEO 301 Redirection in Plesk (Redirect would works from http to https)

      In this case, "too many redirects" error may occurs. 

    2. Configure all needed redirects and then install WordPress 

      - Configure SEO 301 Redirection in Plesk (Redirect would works from http to https)
      - Install WordPress after that (WP_HOME and WP_SITEURL would be https://example.com)

      In this case, all will be configured properly and WordPress would work as expected. 

    So, I recommend you to install WordPress after configuring all redirections in Plesk. 

    If this does not work for you, please get back to us. 

     

     

Please sign in to leave a comment.