WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. erikhetland
    Member
    Posted 5 years ago #

    Hello,

    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 5 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
    Member
    Posted 5 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
    moderator
    Posted 5 years ago #

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

  5. erikhetland
    Member
    Posted 5 years ago #

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

    http://mydomain.org/wp-login.php?redirect_to=http%3A%2F%mydomain.org%2Fwp-admin%2F

    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
    Member
    Posted 5 years ago #

    Still got the problem.. Anyone got a solution?

  7. erikhetland
    Member
    Posted 5 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
    Member
    Posted 5 years ago #

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

  9. lexpresso
    Member
    Posted 5 years ago #

  10. tpack
    Member
    Posted 4 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:

    http://myblog.com/wordpress/wp-login.php?redirect_to=http%3A%2F%2Fmyblog.com%2Fwordpress%2Fwp-admin%2F

    Any ideas?

Topic Closed

This topic has been closed to new replies.

About this Topic