Droplet from Snapshot problem


I recently created a snapshot of my droplet, since i wanted two versions of my website on two different domains.

However, when i go into my new droplets IP, and do / admin, i still end up on my original admin panel, and cannot do changes directly in my copied droplet.

In other words, why is my ‘new’ droplet from a snapshot redirecting me to my ‘old’ droplet whenever i try to login as admin to it?


Submit an 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.

Hi all,

I also ran into this problem while transferring a snapshot of a WordPress site. It looks like WordPress will redirect to whatever URL is specified in the “home” WordPress option if you move the site onto another URL. Here’s how I resolved this:

First, make sure that this is actually the problem. Run:

$ curl -I

HTTP/1.1 301 Moved Permanently
Date: Thu, 17 Oct 2019 23:40:29 GMT
Server: Apache/2.4.29 (Ubuntu)
X-Redirect-By: WordPress
Content-Type: text/html; charset=UTF-8

The line “X-Redirect-By: WordPress” means that we’re actually hitting the right server, and WordPress is bouncing us back to the old URL.

To fix this, log into your new site via SSH (this won’t be redirected by WordPress). Then log into mysql with your root account and fix the “home” and “siteurl” WordPress options:

$ mysql -u root -p
> update wordpress.wp_options set option_value='' where option_name='home';
> update wordpress.wp_options set option_value='' where option_name='siteurl';

Finally, you’re going to need to clear your browser cache or it will keep redirecting to the old site. On Firefox you just run “Clear Recent History” and select “Cache” to do this.

Hello Zimpstar, I am having the same redirection issue, can you tell me how you solved it ?

I changed the url in wp-config, and function via ftp but still nothing changes, i can’t login to wp admin and phpmyadmin since i am redirected to the old one.

That’s not possible. Are you sure you’re using the correct IP? How are you verifying that the changes are being done?