Question

How to change domain name after using wordpress image.

Posted December 17, 2021 91 views
UbuntuApacheWordPress

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

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
1 answer

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