Unable to login to /wp-admin

Hi, the problem I’m having today has to do with WordPress login.

Whenever I go to my website to log into the WordPress admin dashboard it doesn’t let me.
I type in my username and password that I am 100% sure is correct, then I press the login button but the screen refreshes once and stays the same. I get no errors.

I do have many plugins but this has never been an issue before, I have not added any new plugins recently.
This issue has only happened to me today when I tried to login to the website.

I have tried every step in this website which states the same issue as me, however none of them worked for me.

I would really appreciate it if anyone could assist me with solving this issue :slight_smile:

same problem like you have this is the third day i can’t resolve it

1 Like

I found the solution to my problem, it’s quite silly tbh…

So in my .htaccess file I had a code to redirect my website to the subdomain www. And apparently this was the issue.

I removed the code and was able to login again.
The code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mywebsite.com [NC]
RewriteRule ^(.*)$ https://www.mywebsite.com/$1 [L,R=301]

It’s unfortunate I had to remove that redirect, is there any other way I can redirect my page to include www.?

Maybe try looking at your .htaccess file? It worked for me.

no the problem persist