When i navigate to /wp-admin/
i am redirected to wp-login.php
with the wp-admin URL in the redirect_to
parameter. Like this:
http://www.domain.com/wp-admin
... goes to ...
http://www.domain.com/wp-login.php?redirect_to=http%3A%2F%2Fwww.domain.com%2Fwp-admin%2F&reauth=1
If i just navigate to /wp-login.php/
i get an endless redirect loop.
Things i’ve tried:
- Removing the .htaccess file in the root
- Renaming the
/wp-content/plugins/
folder (to check if any plugins are messing things up) - Renaming all cookie keys in
wp-config.php
- Changing permissions of the wp-login.php file to 755
Those are solutions i’ve found through other forums. I haven’t had any success with either of them.
Basically what happened is a few months ago i was editing the site theme, and everything was working then. I haven’t logged in until today, and now that i tried logging in i was met by this error.
Any other ideas?
Try reinstalling WordPress by replacing all the core files. Make sure you don’t touch the
/wp-content/
folder (and/or back it up). Perhaps something goofy has happened to one of the core files.Edit:
Try checking permissions on
wp-login.php
– should be 644.