WordPress Infinite 302 Redirect loop on login after Reverting or Overwriting Folders

WordPress Infinite 302 Redirect loop on login after Reverting or Overwriting Folders

A few weeks ago, I updated a WordPress installation to 4.0, only to find out that the theme it was using, was not yet fully compatible with 4.0. So in order to revert to a prior version of WordPress, I had to download the version I wanted, and remove and re-upload only the wp-admin and wp-includes directories.

Once this was done, the site began functioning normally again, but once I logged into the site, I realized I was having a small issue. I would enter my credentials, and once WordPress would redirect me to the admin area (wp-admin), it would just perform a 302 redirect over and over, until the browser just quit. I did some googling and found that a number of other users have had this issue and fixed it with a change of permissions on those folders. (WordPress directories should be 755 by default). I made the permission tweaks, and still had the same error. Tried disabling plugins, themes, etc, same error. Finally, by a matter of chance, I noticed that I could not create any files via cPanel, in this newly created wp-admin directory. “Aha!” it has to be directory ownership!

So upon changing directory ownership to my cPanel user, and not the root user, WordPress was again able to recognize the wp-admin directories and default documents, and everything loaded correctly.

So the bottom line, if you’re having issues with infinite 302 redirects on the WordPress wp-admin area, ESPECIALLY after overwriting that folder or re-uploading it, check that folder permissions are set at 755, and more importantly folder ownership is the correct user. I wasted quite a few hours trying to figure this one out.

Share Your Thoughts!

Testimonials

What My Clients Say

Karin - Hope and Future

Brent has always been very prompt and generally exceeds our expectations with his work. His maintenance fee is very reasonable. I strongly recommend him!  We get many compliments on our beautiful web site!

Dan

I contacted Krueger Web Design and Brent did everything.  He setup a test site with the changes so we could verify everything was correct before we transferred from my old hosting provider.  During the setup and conversion Brent was extremely professional and responsive. He responded to any issues the same day.

Dan Kaufman
Emily - GFCLT

We've had a great experience working with Krueger Web Design. Prompt responses, great ideas, effective work... all at a reasonable price! This was the perfect fit for our organization.

Mahmud - ACMC

I would love to recommend you to anyone! You have been very helpful when we needed you the most.

Brian - SEMNIC

Working with Krueger Web Design was effortless. Communicating what I wanted for the website and the results that I saw were identical. The customer service was always prompt and I am completely satisfied with the product.

Zach - Stadium Club

Exactly what I wanted! Fast turnaround time and very affordable. Answered all of our questions quickly and made adjustments promptly. Very easy to work with and puts everything into terminology that even I can understand!

Contact Krueger Web Design

Have a question for me? Need an estimate on some work? You can email me at brent@kruegerwebdesign.com or drop me a line using the button below:

Copyright © 2017 Krueger Web Design - All rights reserved
Web Design in Madison, WI