Snapshot based droplet is redirecting to the old IP

I’ve a wordpress droplet with a domain, for instance, i created a snapshot to change the domain for instance as

I’ve structured the new droplet, changed the ‘siteurl’ and ‘home’ according to the new details.

Finally if i go to the no problem but when i go to, it is redirecting to https://olddropletIP.

Btw if i try to admin panel ‘https://site-two/wp-admin’ is redirecting to https://olddropletIP/wp-login.php, but if I try with ‘/’ , like ‘…wp-admin/’ this is redirecting to https://site-two/wp-login.php

When i checked with curl -I http://site-two, Location detail seems new IP before SSL but old IP after SSL.

I am very confused and can’t figure out what is the problem.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

More information.

  1. The redirect rule that you can check is the file called .htaccess which is under the /var/www/html/ folder as well as web admin at port 7080 > Virtual host > Rewrite tab, check

  2. You might also want to visit web admin at port 7080, and check if you have the new domain on both HTTP and HTTPS listeners,

Hello, @TinySeaGreenLobster

Do you have any custom redirect rules for HTTP requests? For example, redirect from HTTP to HTTPS? You can temporary disable any redirect rules or plugins that do that for you and give it a try.

You can also check the virtual host for the domain name and make sure the old server IP address is not defined in the virtual host block.

Regards, Alex