Saturday, 3 December 2011

Wp-admin redirects to localhost

The Question:

I have WordPress installed on my localhost. All worked perfectly till today. But today when I enter http://localhost/wp-admin in the url to access the admin panel, it redirects back to the home page. I can't get access the admin panel. It's not happened before, whenever I try to access admin panel, it does. Please guys help me out.... Thank You. wp-admin local-installation
------------------------------------------------------------------------

How I resolved it:

Log in to your PhPmyAdmin in your CPanel and look for the database for your wordpress.

2 steps once there:
Step1:
Change url by editing an entry in a table(wp-options) of the database to rectify the problem.
Step 2:
Next, login to wp-admin and go to settings and change the url.

Hope this helps.