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.


  1. Ruchi

    November 15, 2009 at 2:08 pm

    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.

  2. Yohan Perera

    November 15, 2009 at 7:11 pm

    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…

  3. Surender Sharma

    November 15, 2009 at 11:17 pm

    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.

  4. Sanjeev Mishra

    November 16, 2009 at 3:20 am

    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.

  5. Sanjeev Mishra

    November 16, 2009 at 3:29 am

    Thanks Yohan for sharing your experience.

  6. Raj

    November 16, 2009 at 6:47 am

    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.

  7. ozzysong

    February 3, 2010 at 5:41 pm

    Thanks, it did the trick.

  8. robert

    February 8, 2010 at 12:54 am

    Thanks a lot!

    this article does do me a great favor!!!

  9. Jon

    February 27, 2010 at 9:21 pm

    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

  10. SEO-Theme

    March 20, 2010 at 7:16 am

    very usefull thx

  11. sathishkumar

    April 23, 2010 at 10:30 am

    Ya…thats great

  12. Beautiful Skin

    February 21, 2011 at 9:16 am

    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.

  13. tech

    February 21, 2011 at 11:00 pm

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

    how to resolved that?

  14. Tejaswini

    February 22, 2011 at 10:23 am

    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.

  15. Tejaswini

    February 22, 2011 at 10:28 am

    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.

  16. Robert

    March 3, 2011 at 1:35 am

    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 :(

  17. Katrin

    July 30, 2012 at 4:59 pm

    Thanks for this solution. It may helps.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>