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

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

Thread Status:
Not open for further replies.
  1. updicit2

    updicit2 New Member

    Likes Received:
    Trophy Points:
    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)

    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.
Thread Status:
Not open for further replies.

Share This Page