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

Status
Not open for further replies.

updicit2

New Member
Messages
8
Reaction score
0
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.
 
Status
Not open for further replies.
Top