wp-admin is redirecting to back to home page (localhost)
How I resolved it: Log in to your PhPmyAdmin in your CPanel and look for the database for your wordpress. 2 steps once there: 1. Change url by editing an entry in a table(wp-options) of the database to rectify the problem. 2. Next, login to wp-admin and go to settings and change the url.