WordPress Tips – Redirect Loop Problem, wp-login.php redirecting to wp-edit.php

wordpress WordPress users may find the issue of redirect loop on their blog specially when accessing WordPress Admin panel. Yesterday, I found this problem on one of my blog and then tried lot many things to rectify that. Finally got the solution which is very simple but so much relaxing. Here is the problem scenario and the solution,

You may also like: WordPress Database Backup : Take Or Schedule A Regular Backup

Problem Scenario

WordPress Admin Panel is working fine but some of the tabs like Edit post or Posts not allowing the user to go inside and check the posts. Even not allowing the Admin as well to check he post or edit them. Simply throwing the login panel (asking for User ID and Password) and saying incorrect password even for the correct one. Or going in to a redirect loop where wp-login.php is redirecting to wp-edit.php or vice versa.



– Short answer is that wordpress is not the culprit but your browser is. Browsers like Google Chrome stores lot many cookies and based on those cookies, wordpress allows someone to check the edit panel of the admin dashboard. If you are accessing lot many admin panels of different wordpress installations then after certain time period, your browser cookies and wordpress security check may land you in the above mentioned scenario.

Don’t panic, everything is under control. You just need to clear cookies of browser and restart that or may try on other browser on your computer. You will be able to login and edit your posts. If you were using Google Chrome then you may try opening admin panel of your dashboard on Mozilla Firefox or Internet explorer.

If the problem of redirect loop still exists in your wordpress admin, then there may be some misconfiguration in your Wp-Options table or wp-config file. 

Sanjeev Mishra is a professional blogger and an Internet Marketing Consultant based in India. He has built the Internet Techies to provide you updates in technology and web application area.
  • Thanks for sharing this information, although i never faced this problem but if i will in future i will keep in mind to clear the cookies.

  • I agree with Sanjeev. I came across this problem, when I changed the configuration of my URL to start with www.

    Therefore instead of logging in through wp-admin I had to login through wp-login.php

    Later on I found the problem and cleared cookies and the cache, all started working again without any redirection loops…

  • Hi Sanjeev,
    This problem occurred with me some days ago but thank God I solved it like your way you have mentioned in the post here.

  • Hi Surender,
    That experience is really horrible and I can understand how it does feel when you are not able to log-in to dashboard having hundreds of posts and efforts of more than a year.

  • Thanks Yohan for sharing your experience.

  • Raj

    I am really thinking of even leaving wordpress for my blogs bcz of this prolem..I cleared chache…, cookis everything but it comes back every once in a while..
    and wont go even clearing everything else.

  • Thanks, it did the trick.

  • Thanks a lot!

    this article does do me a great favor!!!

  • Jon

    Thanks! Been going through the database with a fine tooth comb, and just generally pulling my hair out. Came across this, did as you suggested, and bingo! works a treat. Thanks

  • very usefull thx

  • sathishkumar

    Ya…thats great

  • I am having this problem right now with my site since i upgraded to the newest wordpress.
    The www did not work and clearing cookies or not accepting cookies did not work.
    This may just have to do with an upgrade so be careful.

  • hi, i get this error Warning: Cannot modify header information – headers already sent by (output started at…

    how to resolved that?

  • There would be a space after opening <?php tag in the file where you are getting the error. Still as this is a code related query, can you please use the support ticket system at clickonf5.com as I can keep track of the queries easily there.

  • I am not getting the issue with WP 3.0.5
    Usually I do get this issue in case I login and open too many admin pages on WP. So I have to clear cookies or access the pages using another browser.

  • Robert

    mates i am facing the problem that once i login to my account i need to reset my pass again for next time i want to login…. 🙁
    can any one help me to sort out the problem 🙁

  • Thanks for this solution. It may helps.