on Digital Ocean I created a new droplet (Droplet A), I have installed Magento 2.3, added REDIS cache, following instruction from digitalstartup.co.uk and I took a snapshot. All working fine.
I created (Droplet B) from the above snapshot but when in my web browser I digit the IP of Droplet B I’m redirected to Droplet A.
I can connect to Droplet B with SSH and I tried to flush the magento cache with following commands:
in /var/www/html/
bin/magento cache:clean
bin/magento cache:flush
I also tried to clear REDIS cache using following command (is it correct?):
redis-cli -a myredispassword flushall
All above action did not have success. I’m still redirected to droplet A.
I don’t think this has anything to do with Redis. Did you remember to update your Base URLs in your Database? If you don’t update this and clear your Magento Cache then you’ll always be redirected to the Domain/IP that was previously set.