• Hi all,

    I have the “Too many redirects” problem with my WP dashboard. I have done all the things the net said which should have helped but they didn’t:
    – delete .htaccess
    – define funtions.php
    – deleted all cookies on my computer
    – deactivated all plugins

    My site has nameservers ponting to Ezoic (add company), they said I should try out to change the Hosts File to see whether the problem is coming from my host. As I changed the host file there was a 501 error (the site was loading via my host).

    My host says it is not his problem, the ad company points to my host and there is my site still not working properly.
    Anybody had the same problem?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hey @webweb1 🙂

    I would recommend trying the following:

    #Check your wp-admin folder permissions. Is it set to 777?. Change it to 755.
    #Put the following code in wp-config.php the first line (inside the PHP tag)

    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');
    }

    (Note – Replace yourdomain.com to your site URL)

    Let me know how it goes.

    Thread Starter webweb1

    (@webweb1)

    Hi Kuldeep,

    thanks for your ideas.
    I’ve checked the wp-admin folder but the permissions are already set to 755.
    Although I’ve inserted your code into the wp_config, it does not work.

    What you maybe need to know, my wp-admin is not loading because of the error but if I go into my site via Google and a ranking for one of my articles it is working. The site is loading not 100% right but is loading without the error. If I type in the home adress it is not working either. Do you know what this might be pointing at?

    @webweb1 It happens mostly cause of a misconfigured redirect loop in WordPress. You can read about it here: https://www.wpbeginner.com/wp-tutorials/how-to-fix-error-too-many-redirects-issue-in-wordpress/

    I earlier tried to assist someone with the same issue, but the host rectified it for him. Here is the thread: https://ww.wp.xz.cn/support/topic/wp-admin-page-show-this-page-isnt-working/

    Here is my last recommendation for you. Paste the following code at the top after <?php in wp-config.php file :

    if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
       $_SERVER['HTTPS']='on';
    else
       $_SERVER['HTTPS']='off';

    Let me know how it goes 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Too many redirects – dashboard not available’ is closed to new replies.