Question

Snapshot based droplet is redirecting to the old IP

Posted December 2, 2021 100 views
WordPressBackupsOpenLiteSpeed WordPress 1-ClickDigitalOcean Droplets

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.

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.

×
Submit an Answer
2 answers

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