I am in the process of transferring a WordPress server from the IP address "" to a new server "".

Unfortunately, I set the WordPress address and the site address as seen here in this screenshot to the first IP address

I have now moved the site, and when I attempt the access the homepage from, I am redirected to

I am currently trying to use in my wp-config.php file and adding the following lines: (code from wp docs here)

define('WP_HOME', '');
define('WP_SITEURL', '');

No success; however, the redirect is now only limited to, entering the url results in a 500 error code

  • changed both ip addresses to, Aug 31, 2018 at 6:46

1 Answer 1


Use Development Address Not Root IP.

You are using a root IP. You need to direct to your site to the correct dev location. Something like this:

Viewing your URL From WHM (if you use it?)

I find working on a subdomain easier such as https://new.exmaple.com, then I migrate it over to the correct domain when finished: https://exmaple.com

enter image description here

Creating Development Subdomains in cPanel (if you use it?)

enter image description here

  • should i change my code in wp-config.php to: define('WP_HOME', ''); define('WP_SITEURL', ''); Aug 31, 2018 at 6:45
  • 1
    No. You have to find the dev URL on your server and change to that. Are you self-hosting or with a hosting provider?
    – Electron
    Aug 31, 2018 at 6:47
  • 1
    I am hosting on Digitalocean I just transferred my work as a screenshot Aug 31, 2018 at 6:48
  • 1
    If you send Digital Ocean a support message, they will be able to tell you what your dev URL is. If you have WHM, you can find it in there. Each hosting provider has a diffrent set up. If you have a domain name on there, you can add a sub domain to it and map it to that while developing.
    – Electron
    Aug 31, 2018 at 6:53
  • The dev URL will most likly be <your ip>/~<username> Example:
    – Electron
    Aug 31, 2018 at 6:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.