Question

How to change domain name after using wordpress image.

I followed the guide for the wordpress image available on marketplace and setup my wordpress site before I had a domain name, (here is the guide: https://marketplace.digitalocean.com/apps/wordpress?ipAddress=128.199.193.228#getting-started) I have now changed my domain in wordpress settings and everything is working fine once the site load so there is no issue with wordpress or the hyperlinks. My website is: https://stakked.com.au/. The problem is that occasionally when new devices load the site it redirects to the ip address and then redirects back to the site, im guessing this is due to the domain name being set to the ip address of the server when I was setting it up using the image, I just dont know how to change it. I checked the virtual hosts file and it was blank so I am unsure what to do. Thanks for any help


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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello,

It is possible that this could be due to caching. If you are using a caching plugin make sure to flush the cache.

As long as your site and home URLs are set to the new domain name this should not be an issue:

https://www.digitalocean.com/community/questions/how-to-i-change-wordpress-url-on-ubuntu-droplet-but-not-lose-my-log-in

Also, another thing that I would recommend is making sure that your Apache Virtual host is set correctly to match your domain name. Regards, Bobby