Report this

What is the reason for this report?

Snapshot based droplet is redirecting to the old IP

Posted on December 2, 2021

I’ve a wordpress droplet with a domain, for instance site-one.com, i created a snapshot to change the domain for instance as site-two.com.

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

Finally if i go to the https://site-two.com no problem but when i go to http://site-two.com, 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.



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!

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.

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

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 https://docs.litespeedtech.com/cloud/images/wordpress/#step-2-add-domain-to-listener

  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, https://docs.litespeedtech.com/cloud/images/wordpress/#step-2-add-domain-to-listener

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.