If your WP login redirects to a different installation of WordPress and you cannot log in to the correct wp-admin:
In my case it was a matter of exporting a blog from WPMU to a stand
alone blog on another server to replicate the entire wordpress
installation with all of the posts and pages intact.
Apparently it exported the blog address. I could access the wordpress blog as a user, but couldn’t login as the admin.
Another time I changed the
Admin->Settings->General->”Wordpress address (URL)” from a
domain name to an IP/directory which threw it into a tizzy. Every time I
tried to log in to it would redirect me. No way to fix this in
WordPress Admin panel.
This fixed it:
Edit the WordPress Database on the server you’d like to login to. Find out by looking at your /wp-config.php file. Then using Cpanel then PHPMyAdmin, open the database and go to the table wp_options->option_name and the value is the blog that it’s redirecting to!
Change this value to the WP install that you’d like to log in to, even using http://174.34.141.10/~myaccount if you have to.
Edit the WordPress Database on the server you’d like to login to. Find out by looking at your /wp-config.php file. Then using Cpanel then PHPMyAdmin, open the database and go to the table wp_options->option_name and the value is the blog that it’s redirecting to!
Change this value to the WP install that you’d like to log in to, even using http://174.34.141.10/~myaccount if you have to.
If this doesn’t actually finish a successful login, and it did make
the redirect go to the proper blog, but the redirect is still there it
could be caused by a config file, not the database.
Alternatively, this may help:
Defining the cookie stuff:
define(‘ADMIN_COOKIE_PATH’, ‘/’);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);
define(‘COOKIE_DOMAIN’, ”);
define(‘COOKIEPATH’, ”);
define(‘SITECOOKIEPATH’, ”);
----------------------------------------------------------------------
No comments:
Post a Comment