[resolved] wp-login redirects to wp-login (10 posts)

  1. erikhetland
    Posted 6 years ago #


    I've read many other topics on this, but nothing helps..
    After an upgrade on my blog, when I tried to login to wp-admin via wp-login.php or custom scripts using a post form to wp-login.php, if I try to redirect to wp-admin, I always is redirected back to wp-login.php with no warning/error..

  2. EMG
    Forum Volunteer
    Posted 6 years ago #

    You mean your log-in fails and you simply keep getting redirected to your log-in page?

    Did you try deleting all of your cookies (or all the cookies related to your website) and clearing the cache?

    If you're not getting an error when logging in but the logging in is unsuccessful, I find that oftentimes, it is because of something in the cookies or cache that is interfering with the log-in process.

    Give my suggestion a try and see what happens?

  3. erikhetland
    Posted 6 years ago #

    Yes, that's what I mean.

    I reset Safari (emtpy/delete everything), still the same...
    Tried Opera and Firefox, just the same...

  4. Samuel B
    Posted 6 years ago #

    try deleting your .htaccess in wordpress root
    try it now
    if works, generate permalinks
    admin - settings - permalinks

  5. erikhetland
    Posted 6 years ago #

    Nope, no change there... :(
    Still getting sent back to:


    EDIT: When I login and look at the address bar, I see;
    1. wp-login.php
    2. wp-admin/
    3. wp-login.php?redirect_to=http%3A%2F%mydomain.org%2Fwp-admin%2F

  6. erikhetland
    Posted 6 years ago #

    Still got the problem.. Anyone got a solution?

  7. erikhetland
    Posted 6 years ago #

    Okay, got it working:

    Backed up everything, deleted everything, clean install,
    then deleted the new database and restored the old one,
    and finally uploaded the old wp-content :-)

  8. lexpresso
    Posted 6 years ago #

    Re-installing is not an option for me...Still looking for a solution..Why is this happenning?

  9. lexpresso
    Posted 6 years ago #

  10. tpack
    Posted 5 years ago #

    I tried everything suggested in this post. I tried also other suggestions in the post as given by lexpresso. Still does not work for me.

    Still have the same problem with redirect:


    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic