I created a WordPress site in a subfolder (website.com/wordpress/) and then carefully moved it to the root (website.com). I used a script to change any reference to the subfolder location in the database to the root location. Everything is working exactly as it should and it was a huge success...
except for just one odd detail: when I go to website.com/wp-admin/, instead of just pulling up website.com/wp-login.php it pulls up website.com/wp-login.php?redirect_to=http%3A%2F%2Fwebsite.com%2Fwp-admin%2F&reauth=1
Why is it redirecting to itself and how can I have it just go to /wp-login.php ?
Any assistance would be greatly appreciated.