WordPress admin dashboard won't work but my site is working

Discussion in 'Free Hosting' started by updicit2, Oct 7, 2019.

  1. updicit2

    updicit2 New Member

    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    1
    Hello. I have this problem this morning. My site works well. However, when I go to my site(dot).com/wp-admin, it shows too many redirects. I search on the internet but only one works. I add this code to my wp-config.php

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

    Now, when I visit again site(dot)com/wp-admin, it loads into site(dot)com/wp-login.php then I enter my user and password. After I logged in, I encounter this message

    "Sorry you're not allowed to access this page"

    what should I do now? Thanks.
     

Share This Page