WordPress admin keeps redirecting to old host

I’m having difficulty moving over my WordPress blog to a new host. Every time I go to log into my wp-admin panel, it keeps redirecting me to my old installation on localhost.

I’ve even ran SQL queries as noted here to update my urls, http://www.mydigitallife.info/how-to-move-wordpress-blog-to-new-domain-or-location/ but every time I go to log in, it reverts back to localhost and I have to repeat the process over again. Any ideas?

Related posts

Leave a Reply

4 comments

  1. Add the below line into wp-config.php config file:

    define('WP_HOME', 'http://' . $_SERVER['SERVER_NAME']);
    
    define('WP_SITEURL', WP_HOME . '/');