Question

How to make Domain Name appear in browser address bar instead of IP address

I followed the directions at https://www.digitalocean.com/community/tutorials/how-to-set-up-a-host-name-with-digitalocean for setting up a host name with digital ocean. However when I visit my domain name (www.domain.com) it opens up the website but then the ip address appears in the address bar instead of the domain name. How do I change this so only the domain name appears?

Show comments

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.

This question was answered by @JonsJava:

Is this a wordpress site? If so, that information is stored in the database, in the wp_config. You can fix it with this query (modify for your needs before using):

UPDATE wp_options SET option_value='http://domain.com' WHERE option_name IN ('siteurl','home');

View the original comment