0

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

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

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

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', 'http://11.11.11.11');
define('WP_SITEURL', 'http://11.11.11.11');

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

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

1 Answer 1

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: https://74.104.158.116/~lbryhub.

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

7
  • should i change my code in wp-config.php to: define('WP_HOME', '11.11.11.11/~lbryred/'); define('WP_SITEURL', '11.11.11.11/~lbryred/'); 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: 11.11.11.11/~mysite
    – 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.