Last week, i used to be configuring a selfhosted wordpress site (onlineearningguru.com). I also had a an identical domain configured at wordpress.com (wordpress.onlineearningguru.com). After making few changes, suddenly the admin login started redirecting to wordpress.onlineearningguru.com. I worked for greater than 4 hours to determine what changes within the setting triggered that. i'm hoping my experience in solving that issue could save it slow if the identical problem arises.
That usually happens in the event you changed the WordPress Address (URL) of yourself hosted WordPress site using General Setting. While you changed it and saved, now you are going to be redirected to the WordPress.com admin panel.
The solution for that's to switch the WordPress Address (URL) from database itself. For this you're required to have access to you self hosted siteâs Cpanel. Please follow these steps:
1. Login to self hosted siteâs CPanel.
2.Visit phpMyAdmin
3. Select your database
4. Select a table named PREFIX_option and read it. (PREFIX relies on what you had used while creating your database during WordPress installation)
5. The primary row of this table contains the locationurl information which, for now, is the address of the site that you're getting redirected to. To switch it, click edit.
6. Change the siteurl on your self hosted blog address and click on OK.
7. Now you need to be capable of finding your admin login page.
Enjoy WordPress.