Skip to content

Fix wp-admin redirecting to old site

Fix wp-admin redirecting to old site

When building a WordPress site on a new server using the same domain as their old server, sometimes you will have an issue logging in to the new WordPress installation wp-admin or wp-login page. It will redirect to the old location that is still live instead of the new one you want to work on. If this is the case, you will need to set the domain to the hosting domain given to you by your hosting company.

The hosting domain is from the hosting company when registering for new server space as well as often under Connection Details of the new server account. All examples are based on A2 Hosting so this may look different for other hosting companies. The hosting domain for your server space will look something like what’s circled in red below:

Easiest way to fix this redirecting issue is to go into phpMyAdmin and manually change the database information. It is listed under the dbname > wv_options. Rows 1 and 2 should be siteurl and home. Change these to the hosting domain (and don’t forget /wp if you’re using that).

Related Posts

Related Posts